diff options
author | Daniele Di Bernardo <daniele.dib@gmail.com> | 2014-11-06 19:56:20 +0100 |
---|---|---|
committer | Daniele Di Bernardo <daniele.dib@gmail.com> | 2014-11-06 19:56:20 +0100 |
commit | eb05774531ffef41f3919dabb5b5a3a4ea723a04 (patch) | |
tree | b8f36c5eec87061966fff0ded17f242542e52c67 /activemodel/lib/active_model/forbidden_attributes_protection.rb | |
parent | 300c96ce158a6ebd3a83b057a8cdf2d29de0fe9d (diff) | |
download | rails-eb05774531ffef41f3919dabb5b5a3a4ea723a04.tar.gz rails-eb05774531ffef41f3919dabb5b5a3a4ea723a04.tar.bz2 rails-eb05774531ffef41f3919dabb5b5a3a4ea723a04.zip |
[Enh] Changed the visibility of the ActiveModel::Dirty#clear_attribute_changes method
In Rails 4.2 it is impossible to define a custom default value for a model's
attribute without making it appear as _changed?, especially when the model
is first initialized. Making this method publicly visible will allow such a behaviour,
without the need to use private APIs.
Diffstat (limited to 'activemodel/lib/active_model/forbidden_attributes_protection.rb')
0 files changed, 0 insertions, 0 deletions