Permalink
Browse files

Small docs fix in Active Model callbacks module

  • Loading branch information...
1 parent 1506ef0 commit 7aae61f4aad5369b7f9fb7c368898f17316a0bb8 @avakhov avakhov committed with vijaydev Nov 19, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 activemodel/lib/active_model/callbacks.rb
View
2 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.

0 comments on commit 7aae61f

Please sign in to comment.