Class: ShibRack::Engine

Inherits:
Rails::Engine
  • Object
show all
Defined in:
lib/shib_rack/engine.rb

Overview

Provides integration of shib-rack into Rails applications

Instance Method Summary collapse

Instance Method Details

#configurationObject



18
19
20
# File 'lib/shib_rack/engine.rb', line 18

def configuration
  config.shib_rack
end

#handlerObject



22
23
24
25
26
27
# File 'lib/shib_rack/engine.rb', line 22

def handler
  return 'ShibRack::DevelopmentHandler' if configuration[:development_mode]
  return 'ShibRack::TestHandler' if configuration[:test_mode]

  'ShibRack::Handler'
end