Class: Motor::SlackConversationsController

Inherits:
ApiBaseController show all
Defined in:
app/controllers/motor/slack_conversations_controller.rb

Instance Method Summary collapse

Methods included from CurrentAbility

#current_ability

Methods included from CurrentUserMethod

#current_user

Instance Method Details

#indexObject



5
6
7
8
9
# File 'app/controllers/motor/slack_conversations_controller.rb', line 5

def index
  authorize!(:create, Motor::Alert)

  render json: { data: Motor::Slack.conversations }
end