lib/active_model/callbacks.rb in activemodel-3.1.3 vs lib/active_model/callbacks.rb in activemodel-3.1.4.rc1
- old
+ new
@@ -39,10 +39,10 @@
# end
#
# 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.
module Callbacks
def self.extended(base)