Class: Ishapi::EmailConversationsController

Inherits:
ApplicationController show all
Defined in:
app/controllers/ishapi/email_conversations_controller.rb

Instance Method Summary collapse

Methods inherited from ApplicationController

#exception, #home, #long_term_token, #vote

Instance Method Details

#deleteObject



12
13
14
15
16
# File 'app/controllers/ishapi/email_conversations_controller.rb', line 12

def delete
  authorize! :email_conversations_delete, ::Ishapi
  convos = Office::EmailConversation.find params[:ids]
  convos.map &:destroy
end