Module: CsvRecord::Callbacks
- Defined in:
- lib/csv_record/callbacks.rb
Defined Under Namespace
Modules: ClassMethods, InstanceMethods
Constant Summary collapse
- CALLBACK_TYPES =
[ :after_initialize, :after_find, :before_validation, :after_validation, :before_save, :after_save, :after_destroy, :before_destroy, :before_create, :after_create, :before_update, :after_update ].freeze
Class Method Summary collapse
Class Method Details
.included(receiver) ⇒ Object
95 96 97 98 |
# File 'lib/csv_record/callbacks.rb', line 95 def self.included(receiver) receiver.extend ClassMethods receiver.send :include, InstanceMethods end |