lib/couch_potato/persistence/callbacks.rb in langalex-couch_potato-0.2.7 vs lib/couch_potato/persistence/callbacks.rb in langalex-couch_potato-0.2.8
- old
+ new
@@ -6,12 +6,12 @@
base.class_eval do
attr_accessor :skip_callbacks
def self.callbacks
@callbacks ||= {}
- @callbacks[self.name] ||= {:before_validation_on_create => [],
- :before_validation_on_update => [], :before_validation_on_save => [], :before_create => [],
+ @callbacks[self.name] ||= {:before_validation => [], :before_validation_on_create => [],
+ :before_validation_on_update => [], :before_validation_on_save => [], :before_create => [],
:after_create => [], :before_update => [], :after_update => [],
:before_save => [], :after_save => [],
:before_destroy => [], :after_destroy => []}
end
end
@@ -33,9 +33,10 @@
end
end
module ClassMethods
[
+ :before_validation,
:before_validation_on_create,
:before_validation_on_update,
:before_validation_on_save,
:before_create,
:before_save,
\ No newline at end of file