Sha256: fa7ea742e3f351bb28a7ae7965824d4e6f0f117ba1a9b5b91087920ceab6182e

Contents?: true

Size: 505 Bytes

Versions: 9

Compression:

Stored size: 505 Bytes

Contents

require_dependency "ishapi/application_controller"

# gem_dir = Gem::Specification.find_by_name("ish_models").gem_dir
# require "#{gem_dir}/lib/office/email_conversation"

module Ishapi
  class EmailConversationsController < ApplicationController

    before_action :check_jwt

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

  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
ishapi-0.1.8.221 app/controllers/ishapi/email_conversations_controller.rb
ishapi-0.1.8.220 app/controllers/ishapi/email_conversations_controller.rb
ishapi-0.1.8.219 app/controllers/ishapi/email_conversations_controller.rb
ishapi-0.1.8.218 app/controllers/ishapi/email_conversations_controller.rb
ishapi-0.1.8.217 app/controllers/ishapi/email_conversations_controller.rb
ishapi-0.1.8.216 app/controllers/ishapi/email_conversations_controller.rb
ishapi-0.1.8.215 app/controllers/ishapi/email_conversations_controller.rb
ishapi-0.1.8.214 app/controllers/ishapi/email_conversations_controller.rb
ishapi-0.1.8.213 app/controllers/ishapi/email_conversations_controller.rb