Sha256: f2ca32cdcedae0ab03ba7426c22240f41f51ab87f50012c38ec7b0d2f3ded6dd

Contents?: true

Size: 589 Bytes

Versions: 17

Compression:

Stored size: 589 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 EmailContextsController < ApplicationController

    before_action :check_jwt

    def summary
      authorize! :summary, Ish::EmailContext
      @results = Ish::EmailContext.summary

      respond_to do |format|
        format.html
        format.csv do
          render layout: false
        end
        format.json do
          render json: @results
        end
      end
    end

  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
ishapi-0.1.8.283 app/controllers/ishapi/email_contexts_controller.rb
ishapi-0.1.8.282 app/controllers/ishapi/email_contexts_controller.rb
ishapi-0.1.8.281 app/controllers/ishapi/email_contexts_controller.rb
ishapi-0.1.8.280 app/controllers/ishapi/email_contexts_controller.rb
ishapi-0.1.8.279 app/controllers/ishapi/email_contexts_controller.rb
ishapi-0.1.8.278 app/controllers/ishapi/email_contexts_controller.rb
ishapi-0.1.8.277 app/controllers/ishapi/email_contexts_controller.rb
ishapi-0.1.8.276 app/controllers/ishapi/email_contexts_controller.rb
ishapi-0.1.8.275 app/controllers/ishapi/email_contexts_controller.rb
ishapi-0.1.8.274 app/controllers/ishapi/email_contexts_controller.rb
ishapi-0.1.8.273 app/controllers/ishapi/email_contexts_controller.rb
ishapi-0.1.8.272 app/controllers/ishapi/email_contexts_controller.rb
ishapi-0.1.8.271 app/controllers/ishapi/email_contexts_controller.rb
ishapi-0.1.8.270 app/controllers/ishapi/email_contexts_controller.rb
ishapi-0.1.8.269 app/controllers/ishapi/email_contexts_controller.rb
ishapi-0.1.8.268 app/controllers/ishapi/email_contexts_controller.rb
ishapi-0.1.8.267 app/controllers/ishapi/email_contexts_controller.rb