Module: SqAuth::SqAuthIntegration::SqAuthActionController

Defined in:
lib/sq_auth/sq_auth_integration/sq_auth_action_controller.rb

Class Method Summary collapse

Class Method Details

.alter_environment(options = {}) ⇒ Object



8
9
10
11
12
# File 'lib/sq_auth/sq_auth_integration/sq_auth_action_controller.rb', line 8

def self.alter_environment options={}
  ActionController::Base.instance_eval do
    include SqAuth::SqAuthHelpers::ActionController
  end
end

.check_environmentObject



4
5
6
# File 'lib/sq_auth/sq_auth_integration/sq_auth_action_controller.rb', line 4

def self.check_environment
  defined?(ActionController::Base)
end