aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/lib/active_model/dirty.rb
diff options
context:
space:
mode:
authorVijay Dev <vijaydev.cse@gmail.com>2012-06-30 23:15:22 +0530
committerVijay Dev <vijaydev.cse@gmail.com>2012-06-30 23:15:22 +0530
commit6b9d1a0db2f7829509689d244d6a5eda5210401d (patch)
tree2d4920fa5e2f3d8571573d5aee717cac261c53ac /activemodel/lib/active_model/dirty.rb
parent4662c5f4effd829099d647a7a76c7044fcc68121 (diff)
parent32c28e8214940fe6b06043b280e8d342e16eb3c6 (diff)
downloadrails-6b9d1a0db2f7829509689d244d6a5eda5210401d.tar.gz
rails-6b9d1a0db2f7829509689d244d6a5eda5210401d.tar.bz2
rails-6b9d1a0db2f7829509689d244d6a5eda5210401d.zip
Merge branch 'master' of github.com:lifo/docrails
Conflicts: activemodel/lib/active_model/errors.rb
Diffstat (limited to 'activemodel/lib/active_model/dirty.rb')
-rw-r--r--activemodel/lib/active_model/dirty.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/activemodel/lib/active_model/dirty.rb b/activemodel/lib/active_model/dirty.rb
index 7014d8114f..9bd5f903cd 100644
--- a/activemodel/lib/active_model/dirty.rb
+++ b/activemodel/lib/active_model/dirty.rb
@@ -80,8 +80,8 @@ module ActiveModel
# person.changes # => {"name" => ["Bill", "Bob"]}
#
# If an attribute is modified in-place then make use of <tt>[attribute_name]_will_change!</tt>
- # to mark that the attribute is changing. Otherwise ActiveModel can't track changes to
- # in-place attributes.
+ # to mark that the attribute is changing. Otherwise ActiveModel can't track
+ # changes to in-place attributes.
#
# person.name_will_change!
# person.name_change # => ["Bill", "Bill"]
@@ -115,7 +115,7 @@ module ActiveModel
end
# Returns a hash of changed attributes indicating their original
- # and new values like <tt>attr => [original value, new value]</tt>.
+ # and new values like <tt>attr => [original value, new value]</tt>.
#
# person.changes # => {}
# person.name = 'bob'