Skip to content

Commit

Permalink
Merge pull request #681 from Neilos/fix-monetized-attributes-class-di…
Browse files Browse the repository at this point in the history
…screpancy

Fix monetized_attributes class discrepancy
  • Loading branch information
semmons99 authored Mar 13, 2024
2 parents 7192ce1 + b32228e commit 44def3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/money-rails/active_record/monetizable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class ReadOnlyCurrencyException < MoneyRails::Error; end

module ClassMethods
def monetized_attributes
monetized_attributes = @monetized_attributes || {}
monetized_attributes = @monetized_attributes || {}.with_indifferent_access

if superclass.respond_to?(:monetized_attributes)
monetized_attributes.merge(superclass.monetized_attributes)
Expand Down

0 comments on commit 44def3e

Please sign in to comment.