If i have a configuration file like this
# config/environments/integration.rb
config.action_controller.session = {
:domain => ".example.com"
}
How do I get the value from within my application controller, e.g:
# app/controller/application_controller
class ApplicationController < Mcc::CoreSupport::FrontendController
def some_method
value = xxx
end
end
The class method
ActionController::Base.session_optionsreturns a hash of the configuration options for the session.So in your case you want
ActionController::Base.session_options[:domain]