diff options
author | Sean Griffin <sean@seantheprogrammer.com> | 2016-04-13 12:33:37 -0600 |
---|---|---|
committer | Sean Griffin <sean@seantheprogrammer.com> | 2016-04-13 12:33:37 -0600 |
commit | 65246f9b1d8a53c940270ceb66c1ca3eb3b28aa4 (patch) | |
tree | 8a1daaad18c8dbda8115f58a6b8a1c6e5084b773 /activemodel/lib | |
parent | 511d0341882b1415aefc30e42fccee3c3989cf1a (diff) | |
parent | 80b9e5d7bde7b8b4c4479e20c927e9cf8fa158ac (diff) | |
download | rails-65246f9b1d8a53c940270ceb66c1ca3eb3b28aa4.tar.gz rails-65246f9b1d8a53c940270ceb66c1ca3eb3b28aa4.tar.bz2 rails-65246f9b1d8a53c940270ceb66c1ca3eb3b28aa4.zip |
Merge pull request #24539 from bogdan/diry-keyword-args
Fixed bug introduced in #24519. Makes build green again
Diffstat (limited to 'activemodel/lib')
-rw-r--r-- | activemodel/lib/active_model/dirty.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activemodel/lib/active_model/dirty.rb b/activemodel/lib/active_model/dirty.rb index 38c0ab6c32..90047c3c12 100644 --- a/activemodel/lib/active_model/dirty.rb +++ b/activemodel/lib/active_model/dirty.rb @@ -178,7 +178,7 @@ module ActiveModel # Handles <tt>*_changed?</tt> for +method_missing+. def attribute_changed?(attr, from: OPTION_NOT_GIVEN, to: OPTION_NOT_GIVEN) # :nodoc: - changes_include?(attr) && + !!changes_include?(attr) && (to == OPTION_NOT_GIVEN || to == __send__(attr)) && (from == OPTION_NOT_GIVEN || from == changed_attributes[attr]) end |