Sha256: a816e77a6abb6b173e2f8b05236bcea4516790769cffd9d228471e496b920b27

Contents?: true

Size: 454 Bytes

Versions: 12

Compression:

Stored size: 454 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
      authorize! :email_conversations_delete, ::Ishapi
      convos = Office::EmailConversation.find params[:ids]
      convos.map &:destroy
    end

  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
ishapi-0.1.8.234 app/controllers/ishapi/email_conversations_controller.rb
ishapi-0.1.8.233 app/controllers/ishapi/email_conversations_controller.rb
ishapi-0.1.8.232 app/controllers/ishapi/email_conversations_controller.rb
ishapi-0.1.8.231 app/controllers/ishapi/email_conversations_controller.rb
ishapi-0.1.8.229 app/controllers/ishapi/email_conversations_controller.rb
ishapi-0.1.8.228 app/controllers/ishapi/email_conversations_controller.rb
ishapi-0.1.8.227 app/controllers/ishapi/email_conversations_controller.rb
ishapi-0.1.8.226 app/controllers/ishapi/email_conversations_controller.rb
ishapi-0.1.8.225 app/controllers/ishapi/email_conversations_controller.rb
ishapi-0.1.8.224 app/controllers/ishapi/email_conversations_controller.rb
ishapi-0.1.8.223 app/controllers/ishapi/email_conversations_controller.rb
ishapi-0.1.8.222 app/controllers/ishapi/email_conversations_controller.rb