Sha256: eff8e5ed0a98d62b136005bbfd07e690ccaf32de3971192f29231abd4849baa9
Contents?: true
Size: 704 Bytes
Versions: 17
Compression:
Stored size: 704 Bytes
Contents
# encoding: utf-8 module Mongoid #:nodoc: # This module contains all the callback hooks for Mongoid. module Callbacks extend ActiveSupport::Concern CALLBACKS = [ :before_validation, :after_validation, :after_initialize, :before_create, :around_create, :after_create, :before_destroy, :around_destroy, :after_destroy, :before_save, :around_save, :after_save, :before_update, :around_update, :after_update, ] included do extend ActiveModel::Callbacks include ActiveModel::Validations::Callbacks define_model_callbacks :initialize, :only => :after define_model_callbacks :create, :destroy, :save, :update end end end
Version data entries
17 entries across 17 versions & 1 rubygems