Module: Granite::Action::Transaction

Extended by:
ActiveSupport::Concern
Included in:
Performing
Defined in:
lib/granite/action/transaction.rb

Instance Method Summary collapse

Instance Method Details

#run_callbacks(event) ⇒ Object



13
14
15
16
17
18
19
20
21
22
23
# File 'lib/granite/action/transaction.rb', line 13

def run_callbacks(event)
  if event.to_s == 'commit'
    begin
      super(event)
    rescue *handled_exceptions => e
      handle_exception(e)
    end
  else
    super(event)
  end
end