Module: Aker::Rack::ConfigurationHelper

Overview

Methods used by Rack middleware for reading configuration data out of the Rack environment.

Instance Method Summary collapse

Methods included from EnvironmentHelper

#authority, #configuration, #interactive?

Instance Method Details

#using_custom_login_page?(env) ⇒ Boolean

Whether a custom login page will be provided by the application.



14
15
16
# File 'lib/aker/rack/configuration_helper.rb', line 14

def (env)
  configuration(env).parameters_for(:rack)[:use_custom_login_page]
end

#using_custom_logout_page?(env) ⇒ Boolean

Whether a custom logout page is in use.



22
23
24
# File 'lib/aker/rack/configuration_helper.rb', line 22

def using_custom_logout_page?(env)
  configuration(env).parameters_for(:rack)[:use_custom_logout_page]
end