Sha256: f9945cbc80bb4f14819e86aefb6a1b7d878555cdb52e5c0fb98a429729f54323

Contents?: true

Size: 572 Bytes

Versions: 6

Compression:

Stored size: 572 Bytes

Contents

require 'active_support/core_ext/array/wrap'

module ActiveResource
  module Callbacks
    extend ActiveSupport::Concern

    CALLBACKS = [
      :before_validation, :after_validation, :before_save, :around_save, :after_save,
      :before_create, :around_create, :after_create, :before_update, :around_update,
      :after_update, :before_destroy, :around_destroy, :after_destroy
    ]

    included do
      extend ActiveModel::Callbacks
      include ActiveModel::Validations::Callbacks

      define_model_callbacks :save, :create, :update, :destroy
    end
  end
end

Version data entries

6 entries across 6 versions & 3 rubygems

Version Path
activeresource-5.0.0 lib/active_resource/callbacks.rb
activeresource-five-5.0.0 lib/active_resource/callbacks.rb
activeresource-4.1.0 lib/active_resource/callbacks.rb
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/activeresource-4.0.0/lib/active_resource/callbacks.rb
activeresource-4.0.0 lib/active_resource/callbacks.rb
activeresource-4.0.0.beta1 lib/active_resource/callbacks.rb