We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7192ce1 + b32228e commit 44def3eCopy full SHA for 44def3e
lib/money-rails/active_record/monetizable.rb
@@ -10,7 +10,7 @@ class ReadOnlyCurrencyException < MoneyRails::Error; end
10
11
module ClassMethods
12
def monetized_attributes
13
- monetized_attributes = @monetized_attributes || {}
+ monetized_attributes = @monetized_attributes || {}.with_indifferent_access
14
15
if superclass.respond_to?(:monetized_attributes)
16
monetized_attributes.merge(superclass.monetized_attributes)
0 commit comments