aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel
diff options
context:
space:
mode:
authorAlexey Vakhov <vakhov@gmail.com>2011-11-19 12:19:59 +0600
committerAlexey Vakhov <vakhov@gmail.com>2011-11-19 12:19:59 +0600
commitefbb73562dde7510d0a08e91a09f1545880b35cb (patch)
tree75fb9a42127e2a0d5e18646b3d2abfc4f4f48d06 /activemodel
parent6fc2e12ec5814658da26de8b0d9c1ffb4365dfa0 (diff)
downloadrails-efbb73562dde7510d0a08e91a09f1545880b35cb.tar.gz
rails-efbb73562dde7510d0a08e91a09f1545880b35cb.tar.bz2
rails-efbb73562dde7510d0a08e91a09f1545880b35cb.zip
Small docs fix in Active Model callbacks module
Diffstat (limited to 'activemodel')
-rw-r--r--activemodel/lib/active_model/callbacks.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activemodel/lib/active_model/callbacks.rb b/activemodel/lib/active_model/callbacks.rb
index 37d0c9a0b9..0621a175bd 100644
--- a/activemodel/lib/active_model/callbacks.rb
+++ b/activemodel/lib/active_model/callbacks.rb
@@ -41,7 +41,7 @@ module ActiveModel
# You can choose not to have all three callbacks by passing a hash to the
# define_model_callbacks method.
#
- # define_model_callbacks :create, :only => :after, :before
+ # define_model_callbacks :create, :only => [:after, :before]
#
# Would only create the after_create and before_create callback methods in your
# class.