Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #13300 from chancancode/add_nodoc_am_dirty_methods

Added :nodoc: for `attribute_changed?` and `attribute_was` [ci skip]
  • Loading branch information...
commit ab11742448e92923992a979d357261403705234e 2 parents 93ee9f0 + f650981
Aaron Patterson tenderlove authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 activemodel/lib/active_model/dirty.rb
4 activemodel/lib/active_model/dirty.rb
View
@@ -149,12 +149,12 @@ def changed_attributes
end
# Handle <tt>*_changed?</tt> for +method_missing+.
- def attribute_changed?(attr)
+ def attribute_changed?(attr) # :nodoc:
changed_attributes.include?(attr)
end
# Handle <tt>*_was</tt> for +method_missing+.
- def attribute_was(attr)
+ def attribute_was(attr) # :nodoc:
attribute_changed?(attr) ? changed_attributes[attr] : __send__(attr)
end
Please sign in to comment.
Something went wrong with that request. Please try again.