Sha256: 35d611b1decbdc4ce86707c0abd9fa105b38dcc1577084262980485532a31d10
Contents?: true
Size: 799 Bytes
Versions: 3
Compression:
Stored size: 799 Bytes
Contents
basedir = File.expand_path(File.join(File.dirname(__FILE__), '..')) require File.join(basedir, 'lib', '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(basedir, 'rails', 'action_controller_instance_methods') # Enable ActionController integration. class ActionController::Base def self.has_global_session include HasGlobalSession::ActionControllerInstanceMethods before_filter :global_session_read_cookie after_filter :global_session_update_cookie end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
has_global_session-0.8.10 | rails/init.rb |
has_global_session-0.8.9 | rails/init.rb |
has_global_session-0.8.7 | rails/init.rb |