Sha256: f4264931b4144402ec08d09afe2643ff265e3a4bdda7b23d3225ed681ba6b25e
Contents?: true
Size: 588 Bytes
Versions: 19
Compression:
Stored size: 588 Bytes
Contents
module CassandraObject module Callbacks extend ActiveSupport::Concern included do extend ActiveModel::Callbacks include ActiveModel::Validations::Callbacks define_model_callbacks :save, :create, :update, :destroy end def destroy #:nodoc: _run_destroy_callbacks { super } end private def create_or_update #:nodoc: _run_save_callbacks { super } end def create #:nodoc: _run_create_callbacks { super } end def update(*) #:nodoc: _run_update_callbacks { super } end end end
Version data entries
19 entries across 19 versions & 1 rubygems