Sha256: da59ad8fa6fe6ae39799820012e953e3271465cd13d32d78780990c3b7f3c3ac
Contents?: true
Size: 350 Bytes
Versions: 2
Compression:
Stored size: 350 Bytes
Contents
# encoding: utf-8 module Mongoid #:nodoc: module Callbacks extend ActiveSupport::Concern included do extend ActiveModel::Callbacks # Define all the callbacks that are accepted by the document. define_model_callbacks \ :create, :destroy, :save, :update, :validate end end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
chhean-mongoid-2.0.1.beta1 | lib/mongoid/callbacks.rb |
mongoid-2.0.0.beta.5 | lib/mongoid/callbacks.rb |