Method: Datamappify::Repository::QueryMethod::Callbacks.included
- Defined in:
- lib/datamappify/repository/query_method/callbacks.rb
.included(klass) ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/datamappify/repository/query_method/callbacks.rb', line 7 def self.included(klass) klass.class_eval do include Hooks define_hooks :before_create, :after_create, :before_update, :after_update, :before_save, :after_save, :before_destroy, :after_destroy, :halts_on_falsey => true end end |