Sha256: 74240d23cd57d8af56d69ff0ede5320b0cb2e17e1b20038be6af2ecc46f88e3a

Contents?: true

Size: 337 Bytes

Versions: 3

Compression:

Stored size: 337 Bytes

Contents

# encoding: utf-8
module Mongoid #:nodoc:
  module Callbacks
    extend ActiveSupport::Concern
    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

3 entries across 3 versions & 2 rubygems

Version Path
mongoid-2.0.0.rc.7 lib/mongoid/callbacks.rb
stonegao-mongoid-2.0.0.rc.6 lib/mongoid/callbacks.rb
mongoid-2.0.0.rc.6 lib/mongoid/callbacks.rb