aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/lib
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2013-09-23 11:25:43 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2013-09-23 11:25:43 -0300
commited0b080cb37a420194b56a7029017ce4a1e8b408 (patch)
tree9eef3cc2c7f825e8a717d958aea03b6272dff7da /activemodel/lib
parent1c6bcefe7e87e1b9c7b2177717bbdc3986806391 (diff)
downloadrails-ed0b080cb37a420194b56a7029017ce4a1e8b408.tar.gz
rails-ed0b080cb37a420194b56a7029017ce4a1e8b408.tar.bz2
rails-ed0b080cb37a420194b56a7029017ce4a1e8b408.zip
Fix the documentation method.
It is reload! in the class definition. [ci skip]
Diffstat (limited to 'activemodel/lib')
-rw-r--r--activemodel/lib/active_model/dirty.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activemodel/lib/active_model/dirty.rb b/activemodel/lib/active_model/dirty.rb
index 0b17443219..98e7d84608 100644
--- a/activemodel/lib/active_model/dirty.rb
+++ b/activemodel/lib/active_model/dirty.rb
@@ -68,7 +68,7 @@ module ActiveModel
# Reset the changes:
#
# person.previous_changes # => {"name" => ["Uncle Bob", "Bill"]}
- # person.reload
+ # person.reload!
# person.previous_changes # => {}
#
# Assigning the same value leaves the attribute unchanged: