aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/callbacks.rb
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-10-26 13:05:48 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-10-26 13:05:48 +0000
commita8eea0b04b2989bd054d7c852d636f1cc5494957 (patch)
treebff2ddce73b205a28bdfe048d74b669b92b20671 /activerecord/lib/active_record/callbacks.rb
parent475bd74168a611cf0aeeda42d464aff1b3dfa806 (diff)
downloadrails-a8eea0b04b2989bd054d7c852d636f1cc5494957.tar.gz
rails-a8eea0b04b2989bd054d7c852d636f1cc5494957.tar.bz2
rails-a8eea0b04b2989bd054d7c852d636f1cc5494957.zip
Fix docs (closes #2491)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2744 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/lib/active_record/callbacks.rb')
-rwxr-xr-xactiverecord/lib/active_record/callbacks.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/activerecord/lib/active_record/callbacks.rb b/activerecord/lib/active_record/callbacks.rb
index fb428c3f31..aa3aa2d1a5 100755
--- a/activerecord/lib/active_record/callbacks.rb
+++ b/activerecord/lib/active_record/callbacks.rb
@@ -86,7 +86,7 @@ module ActiveRecord
#
# There are four types of callbacks accepted by the callback macros: Method references (symbol), callback objects,
# inline methods (using a proc), and inline eval methods (using a string). Method references and callback objects are the
- # recommended approaches, inline methods using a proc is some times appropriate (such as for creating mix-ins), and inline
+ # recommended approaches, inline methods using a proc are sometimes appropriate (such as for creating mix-ins), and inline
# eval methods are deprecated.
#
# The method reference callbacks work by specifying a protected or private method available in the object, like this:
@@ -153,7 +153,7 @@ module ActiveRecord
#
# == The after_find and after_initialize exceptions
#
- # Because after_find and after_initialize is called for each object instantiated found by a finder, such as Base.find(:all), we've had
+ # Because after_find and after_initialize are called for each object found and instantiated by a finder, such as Base.find(:all), we've had
# to implement a simple performance constraint (50% more speed on a simple test case). Unlike all the other callbacks, after_find and
# after_initialize will only be run if an explicit implementation is defined (<tt>def after_find</tt>). In that case, all of the
# callback types will be called.
@@ -263,10 +263,10 @@ module ActiveRecord
result
end
- # Is called _before_ Base.save on existing objects that has a record.
+ # Is called _before_ Base.save on existing objects that have a record.
def before_update() end
- # Is called _after_ Base.save on existing objects that has a record.
+ # Is called _after_ Base.save on existing objects that have a record.
def after_update() end
def update_with_callbacks #:nodoc:
@@ -291,11 +291,11 @@ module ActiveRecord
def after_validation_on_create() end
# Is called _before_ Validations.validate (which is part of the Base.save call) on
- # existing objects that has a record.
+ # existing objects that have a record.
def before_validation_on_update() end
# Is called _after_ Validations.validate (which is part of the Base.save call) on
- # existing objects that has a record.
+ # existing objects that have a record.
def after_validation_on_update() end
def valid_with_callbacks #:nodoc: