Skip to content

Commit 44def3e

Browse files
authored
Merge pull request #681 from Neilos/fix-monetized-attributes-class-discrepancy
Fix monetized_attributes class discrepancy
2 parents 7192ce1 + b32228e commit 44def3e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/money-rails/active_record/monetizable.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class ReadOnlyCurrencyException < MoneyRails::Error; end
1010

1111
module ClassMethods
1212
def monetized_attributes
13-
monetized_attributes = @monetized_attributes || {}
13+
monetized_attributes = @monetized_attributes || {}.with_indifferent_access
1414

1515
if superclass.respond_to?(:monetized_attributes)
1616
monetized_attributes.merge(superclass.monetized_attributes)

0 commit comments

Comments
 (0)