Permalink
Browse files

Added :nodoc: for `attribute_changed?` and `attribute_was` [ci skip]

These methods were made "public" in 47617ec so that `method_missing`
can invoke them without going through `send`, but they aren't meant
for consumption from outside of Rails.
  • Loading branch information...
1 parent 93ee9f0 commit f65098148337087eb323f0d06ae08e49cf899e6f @chancancode chancancode committed Dec 12, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 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 f650981

Please sign in to comment.