Sha256: eb9bfcab59475d824318d6ce42c7fad207677c8d5aa1b90546348fc52e62f220
Contents?: true
Size: 461 Bytes
Versions: 3
Compression:
Stored size: 461 Bytes
Contents
basedir = File.expand_path(File.join(File.dirname(__FILE__), '..')) libdir = File.join(basedir, 'lib') config_file = File.join(RAILS_ROOT, 'config', 'global_session.yml') if File.exist?(config_file) require File.join(libdir, 'has_global_session') require File.join(libdir, 'has_global_session', 'rails') # Enable ActionController integration. class <<ActionController::Base include HasGlobalSession::Rails::ActionControllerClassMethods end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
has_global_session-1.1.3 | rails/init.rb |
has_global_session-1.1.2 | rails/init.rb |
has_global_session-1.1.0 | rails/init.rb |