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