Sha256: 941a4604764548faa3d47eca140d91bf47c071338a75f84dafeb8a6448271d85
Contents?: true
Size: 807 Bytes
Versions: 1
Compression:
Stored size: 807 Bytes
Contents
module HasGlobalSession module Rails # Module that is mixed into ActionController's eigenclass; provides access to shared # app-wide data such as the configuration object. module ActionControllerClassMethods def global_session_config unless @global_session_config config_file = File.join(RAILS_ROOT, 'config', 'global_session.yml') @global_session_config = HasGlobalSession::Configuration.new(config_file, RAILS_ENV) @global_session_config.config_file = config_file end return @global_session_config end def global_session_config=(config) @global_session_config = config end def has_global_session include HasGlobalSession::Rails::ActionControllerInstanceMethods end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
has_global_session-1.1.0 | lib/has_global_session/rails/action_controller_class_methods.rb |