Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit f65098148337087eb323f0d06ae08e49cf899e6f 1 parent 93ee9f0
@chancancode chancancode authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.