aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/active_model_basics.md
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2014-07-15 16:12:23 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2014-07-15 18:09:38 -0300
commit41fb06fa47b0c11d6b943163ec1bc8ce9fd4d229 (patch)
tree8273991bd00e5b3b47d0994630b9d6875f5abdc6 /guides/source/active_model_basics.md
parent66d0a0153578ce760d822580c5b8c0b726042ac2 (diff)
downloadrails-41fb06fa47b0c11d6b943163ec1bc8ce9fd4d229.tar.gz
rails-41fb06fa47b0c11d6b943163ec1bc8ce9fd4d229.tar.bz2
rails-41fb06fa47b0c11d6b943163ec1bc8ce9fd4d229.zip
Deprecate `reset_#{attribute}` in favor of `restore_#{attribute}`.
These methods may cause confusion with the `reset_changes` that behaves differently of them. Also rename undo_changes to restore_changes to match this new set of methods.
Diffstat (limited to 'guides/source/active_model_basics.md')
-rw-r--r--guides/source/active_model_basics.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/guides/source/active_model_basics.md b/guides/source/active_model_basics.md
index 1131a83c36..3eaeeff389 100644
--- a/guides/source/active_model_basics.md
+++ b/guides/source/active_model_basics.md
@@ -202,7 +202,7 @@ person.valid? # => raises ActiveModel::StrictValidationFa
### ActiveModel::Naming
Naming adds a number of class methods which make the naming and routing
-easier to manage. The module defines the `model_name` class method which
+easier to manage. The module defines the `model_name` class method which
will define a number of accessors using some `ActiveSupport::Inflector` methods.
```ruby
@@ -220,4 +220,4 @@ Person.model_name.param_key # => "person"
Person.model_name.i18n_key # => :person
Person.model_name.route_key # => "people"
Person.model_name.singular_route_key # => "person"
-``` \ No newline at end of file
+```