Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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
  • Loading branch information...
commit 5e705221004fe78f901cd7461fe59da5dc926706 1 parent af7daff
Prasath Venkatraman authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  activemodel/lib/active_model/dirty.rb
View
3  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 Dirty
# person.name = 'bob'
# person.changed? # => true
def changed?
- changed_attributes.any?
+ changed_attributes.present?
end
# List of attributes with unsaved changes.
Please sign in to comment.
Something went wrong with that request. Please try again.