module ActiveCrew::Respondable

Public Instance Methods

execute() click to toggle source
Calls superclass method
# File lib/active_crew/concerns/respondable.rb, line 13
def execute
  super
rescue Interrupt
  raise
rescue CommandError
  respond_with $ERROR_INFO
end
respond_fail(*args) click to toggle source
# File lib/active_crew/concerns/respondable.rb, line 9
def respond_fail(*args)
  fail CommandError, I18n.t(*args)
end
respond_with(model) click to toggle source
# File lib/active_crew/concerns/respondable.rb, line 5
def respond_with(model)
  Responders.respond_with name, invoker, context, model
end