Sha256: 2024aee19a95fcf90d714b233b977ba605c97835f68977c95e631d1602cd0f9b

Contents?: true

Size: 404 Bytes

Versions: 6

Compression:

Stored size: 404 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

      end

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

    end

  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
couchrest_model-1.1.0.rc1 lib/couchrest/model/callbacks.rb
couchrest_model-1.1.0.beta5 lib/couchrest/model/callbacks.rb
couchrest_model-1.1.0.beta4 lib/couchrest/model/callbacks.rb
couchrest_model-1.1.0.beta3 lib/couchrest/model/callbacks.rb
couchrest_model-1.1.0.beta2 lib/couchrest/model/callbacks.rb
couchrest_model-1.1.0.beta lib/couchrest/model/callbacks.rb