aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel
diff options
context:
space:
mode:
authorRizwan Reza <rizwanreza@gmail.com>2010-06-14 13:38:29 +0430
committerRizwan Reza <rizwanreza@gmail.com>2010-06-14 13:38:29 +0430
commit716c243def156edf16765e7cd2e3240075a5ef22 (patch)
tree60aa65deee0e6a8c3ff87bd386321d4063c71c37 /activemodel
parent97d6778c800c5bd0165c2e2388a66c501bcccc02 (diff)
downloadrails-716c243def156edf16765e7cd2e3240075a5ef22.tar.gz
rails-716c243def156edf16765e7cd2e3240075a5ef22.tar.bz2
rails-716c243def156edf16765e7cd2e3240075a5ef22.zip
Minor changes to active_model/callbacks.rb and dirty.rb
Diffstat (limited to 'activemodel')
-rw-r--r--activemodel/lib/active_model/callbacks.rb2
-rw-r--r--activemodel/lib/active_model/dirty.rb17
2 files changed, 12 insertions, 7 deletions
diff --git a/activemodel/lib/active_model/callbacks.rb b/activemodel/lib/active_model/callbacks.rb
index f41a3e8ea5..257644b3fa 100644
--- a/activemodel/lib/active_model/callbacks.rb
+++ b/activemodel/lib/active_model/callbacks.rb
@@ -2,7 +2,7 @@ require 'active_support/core_ext/array/wrap'
require 'active_support/callbacks'
module ActiveModel
- # == Active Model Callbacks
+ # == Active Model Call Backs
#
# Provides an interface for any class to have Active Record like callbacks.
#
diff --git a/activemodel/lib/active_model/dirty.rb b/activemodel/lib/active_model/dirty.rb
index bbcc345e4b..a82ce1bee0 100644
--- a/activemodel/lib/active_model/dirty.rb
+++ b/activemodel/lib/active_model/dirty.rb
@@ -4,16 +4,21 @@ require 'active_support/hash_with_indifferent_access'
require 'active_support/core_ext/object/duplicable'
module ActiveModel
- # <tt>ActiveModel::Dirty</tt> provides a way to track changes in your
- # object in the same way as ActiveRecord does.
+ # == Active Model Call Backs
+ #
+ # Provides a way to track changes in your object in the same way as
+ # Active Record does.
#
- # The requirements to implement ActiveModel::Dirty are:
+ # The requirements to implement ActiveModel::Dirty are to:
#
# * <tt>include ActiveModel::Dirty</tt> in your object
- # * Call <tt>define_attribute_methods</tt> passing each method you want to track
- # * Call <tt>attr_name_will_change!</tt> before each change to the tracked attribute
+ # * Call <tt>define_attribute_methods</tt> passing each method you want to
+ # track
+ # * Call <tt>attr_name_will_change!</tt> before each change to the tracked
+ # attribute
#
- # If you wish to also track previous changes on save or update, you need to add
+ # If you wish to also track previous changes on save or update, you need to
+ # add
#
# @previously_changed = changes
#