Sha256: 0281cfadeeb7798b7c1b43a6b1f708b38a36ad285362b8bd9fa0fb903b94f45e
Contents?: true
Size: 719 Bytes
Versions: 6
Compression:
Stored size: 719 Bytes
Contents
basedir = File.expand_path(File.join(File.dirname(__FILE__), '..')) libdir = File.join(basedir, 'lib') require File.join(libdir, 'has_global_session') config_file = File.join(RAILS_ROOT, 'config', 'global_session.yml') if File.exist?(config_file) # Tie the Configuration module to Rails' filesystem structure # and operating environment. HasGlobalSession::Configuration.config_file = config_file HasGlobalSession::Configuration.environment = RAILS_ENV require File.join(libdir, 'has_global_session', 'rails') # Enable ActionController integration. class ActionController::Base def self.has_global_session include HasGlobalSession::Rails::ActionControllerInstanceMethods end end end
Version data entries
6 entries across 6 versions & 1 rubygems