Skip to content

Commit

Permalink
Fix builds for Rails 4.0 and 4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
andrykonchin committed Apr 26, 2018
1 parent 8deafbf commit bac743c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/dynamoid/dirty.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,11 @@ def mutations_from_database
def forget_attribute_assignments
end
end

if ActiveModel::VERSION::STRING < '4.2.0'
def clear_changes_information
changed_attributes.clear
end
end
end
end

0 comments on commit bac743c

Please sign in to comment.