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...
2 parents 93ee9f0 + f650981 commit ab11742448e92923992a979d357261403705234e @tenderlove tenderlove committed Dec 12, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 activemodel/lib/active_model/dirty.rb
View
4 activemodel/lib/active_model/dirty.rb
@@ -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

0 comments on commit ab11742

Please sign in to comment.