Class: HubotGf::TasksController

Inherits:
ActionController::Base
  • Object
show all
Defined in:
app/controllers/hubotgf/tasks_controller.rb

Instance Method Summary collapse

Instance Method Details

#createObject



4
5
6
7
# File 'app/controllers/hubotgf/tasks_controller.rb', line 4

def create
  result = HubotGf::Worker.start(params[:command], params[:_sender], params[:_room])
  head (result ? :ok : :not_found)
end