Skip to content

Commit

Permalink
Merge pull request #17545 from marzapower/dirty_public_api
Browse files Browse the repository at this point in the history
[Enh] Made the ActiveModel::Dirty#clear_attribute_changes method public
  • Loading branch information
rafaelfranca committed Nov 6, 2014
2 parents 001b270 + eb05774 commit 9a517b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activemodel/lib/active_model/dirty.rb
Expand Up @@ -255,7 +255,7 @@ def set_attribute_was(attr, old_value)
end

# Remove changes information for the provided attributes.
def clear_attribute_changes(attributes)
def clear_attribute_changes(attributes) # :doc:
attributes_changed_by_setter.except!(*attributes)
end
end
Expand Down

0 comments on commit 9a517b5

Please sign in to comment.