Sha256: bb3d92344c68087d556c161f739945ebd0f11d970f8f33b2f130b2e7d4509ae6
Contents?: true
Size: 547 Bytes
Versions: 5
Compression:
Stored size: 547 Bytes
Contents
# encoding: utf-8 module Mongoid #:nodoc: module Callbacks extend ActiveSupport::Concern included do extend ActiveModel::Callbacks define_model_callbacks \ :create, :destroy, :initialize, :save, :update, :validation end # Determine if the document is valid. # # @example Is the document valid? # person.valid? # # @return [ true, false ] True if valid, false if not. def valid?(*) _run_validation_callbacks { super } end end end
Version data entries
5 entries across 5 versions & 1 rubygems