Sha256: dc7501890868ec33bd67283cde28520a9e6ddd6a913479f274e1edb1e316120a

Contents?: true

Size: 586 Bytes

Versions: 8

Compression:

Stored size: 586 Bytes

Contents

# frozen_string_literal: true

module Ibrain
  class BaseController < ActionController::API
    include ActionController::Helpers
    include Ibrain::Core::ControllerHelpers::Response
    include Ibrain::Core::ControllerHelpers::StrongParameters
    include Ibrain::Core::ControllerHelpers::CurrentHost
    include Ibrain::Core::ControllerHelpers::Auth

    include IbrainErrors
    include IbrainHandler

    protected

    def operation_name
      params[:operationName]
    end

    def skip_operations
      []
    end

    def cryptor
      Ibrain::Encryptor.new
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
ibrain-core-0.1.7 app/controllers/ibrain/base_controller.rb
ibrain-core-0.1.6 app/controllers/ibrain/base_controller.rb
ibrain-core-0.1.5 app/controllers/ibrain/base_controller.rb
ibrain-core-0.1.4 app/controllers/ibrain/base_controller.rb
ibrain-core-0.1.3 app/controllers/ibrain/base_controller.rb
ibrain-core-0.1.2 app/controllers/ibrain/base_controller.rb
ibrain-core-0.1.1 app/controllers/ibrain/base_controller.rb
ibrain-core-0.1.0 app/controllers/ibrain/base_controller.rb