Module: AD::Framework::Patterns::Callbacks::InstanceMethods
- Defined in:
- lib/ad-framework/patterns/callbacks.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
20 21 22 23 24 25 |
# File 'lib/ad-framework/patterns/callbacks.rb', line 20 def create transaction = AD::Framework::Utilities::Transaction.new(:create, self) do super end transaction.run end |
#destroy ⇒ Object
34 35 36 37 38 39 |
# File 'lib/ad-framework/patterns/callbacks.rb', line 34 def destroy transaction = AD::Framework::Utilities::Transaction.new(:destroy, self) do super end transaction.run end |
#update ⇒ Object
27 28 29 30 31 32 |
# File 'lib/ad-framework/patterns/callbacks.rb', line 27 def update transaction = AD::Framework::Utilities::Transaction.new(:update, self) do super end transaction.run end |