diff options
author | Prasath Venkatraman <pvenkartaman@crri.co.in> | 2012-02-06 16:13:38 +0530 |
---|---|---|
committer | Prasath Venkatraman <pvenkartaman@crri.co.in> | 2012-02-06 18:10:27 +0530 |
commit | 5e705221004fe78f901cd7461fe59da5dc926706 (patch) | |
tree | 6e8f265ca3bc03a3f6a9947cd50763d87fe34b41 /activemodel/lib | |
parent | af7dafff818094a6e02505fe7d6d87add6c2a7e8 (diff) | |
download | rails-5e705221004fe78f901cd7461fe59da5dc926706.tar.gz rails-5e705221004fe78f901cd7461fe59da5dc926706.tar.bz2 rails-5e705221004fe78f901cd7461fe59da5dc926706.zip |
Changing active model dirty module helper method to more appropriate method with helper #4903
Changing active model dirty module helper method to more appropriate method with helper with Active Support Helper #4903
Changing active model dirty module helper method to more appropriate method with helper with Active Support Helper typo fixed #4903
Diffstat (limited to 'activemodel/lib')
-rw-r--r-- | activemodel/lib/active_model/dirty.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/activemodel/lib/active_model/dirty.rb b/activemodel/lib/active_model/dirty.rb index 026f077ee7..d327913824 100644 --- a/activemodel/lib/active_model/dirty.rb +++ b/activemodel/lib/active_model/dirty.rb @@ -1,6 +1,7 @@ require 'active_model/attribute_methods' require 'active_support/hash_with_indifferent_access' require 'active_support/core_ext/object/duplicable' +require 'active_support/core_ext/object/blank' module ActiveModel # == Active Model Dirty @@ -98,7 +99,7 @@ module ActiveModel # person.name = 'bob' # person.changed? # => true def changed? - changed_attributes.any? + changed_attributes.present? end # List of attributes with unsaved changes. |