Sha256: dbcd2d989cfcc03319778306fad469dbbcba9b364474b739163349730b67ef0c

Contents?: true

Size: 425 Bytes

Versions: 6

Compression:

Stored size: 425 Bytes

Contents

# encoding: utf-8

module CouchRest #:nodoc:
  module Model #:nodoc:

    module Callbacks
      extend ActiveSupport::Concern
      included do
        extend ActiveModel::Callbacks

        define_model_callbacks \
          :create,
          :destroy,
          :save,
          :update,
          :validate

      end

      def valid?(*) #nodoc
        _run_validation_callbacks { super }
      end

    end

  end
end

Version data entries

6 entries across 6 versions & 3 rubygems

Version Path
couchrest_model-1.0.0 lib/couchrest/model/callbacks.rb
couchrest_model-radiant-1.0.0 lib/couchrest/model/callbacks.rb
couchrest_model-1.0.0.beta8 lib/couchrest/model/callbacks.rb
couchrest_model_thought-1.0.0.beta9 lib/couchrest/model/callbacks.rb
couchrest_model_thought-1.0.0.beta8 lib/couchrest/model/callbacks.rb
couchrest_model-1.0.0.beta7 lib/couchrest/model/callbacks.rb