Sha256: fba2b89d4582713e9e39e0f7eb90bd7f94c71dfe525af6bb8a9a6250e5329218
Contents?: true
Size: 506 Bytes
Versions: 2
Compression:
Stored size: 506 Bytes
Contents
# encoding: UTF-8 module MongoMapper module Plugins module Callbacks extend ActiveSupport::Concern def destroy run_callbacks(:destroy) { super } end def touch(*) run_callbacks(:touch) { super } end private def create_or_update(*) run_callbacks(:save) { super } end def create(*) run_callbacks(:create) { super } end def update(*) run_callbacks(:update) { super } end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mongo_mapper-0.13.1 | lib/mongo_mapper/plugins/callbacks.rb |
mongo_mapper-0.13.0 | lib/mongo_mapper/plugins/callbacks.rb |