Module: Opium::Model::Callbacks
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/opium/model/callbacks.rb
Defined Under Namespace
Modules: ClassMethods
Constant Summary collapse
- CALLBACKS =
%w[before after around].map {|event| %w[save create update destroy].map {|action| :"#{event}_#{action}"}}.flatten + %w[initialize find touch].map {|action| :"after_#{action}"} + %w[before after].map {|event| :"#{event}_validation"}