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
This commit is contained in:
Prasath Venkatraman 2012-02-06 16:13:38 +05:30
parent af7dafff81
commit 5e70522100
1 changed files with 2 additions and 1 deletions

View File

@ -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.