Sha256: 94f7c5bf3ce5ea48025a3276145ad81ddba4178c647353858c9ec6a6323944f6
Contents?: true
Size: 536 Bytes
Versions: 44
Compression:
Stored size: 536 Bytes
Contents
module CassandraObject module Callbacks extend ActiveSupport::Concern included do extend ActiveModel::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
44 entries across 44 versions & 1 rubygems