search for: set_sess

Displaying 1 result from an estimated 1 matches for "set_sess".

Did you mean: se_sess
2006 Apr 06
7
LoginSystem : make @session available to models
...application, leading to multiple sessions. First, let controllers give @session to models : (In controllers/application.rb) class ApplicationController < ActionController::Base include LoginSystem before_filter :export_session_to_models def export_session_to_models ActiveRecord::Base.set_session { @session } end end Now, let models know the set_session method, and let''s define ActiveRecord::Base::session: (In controllers/application.rb) # This unless is required for proper behavior in FastCGI context unless defined? ActiveRecord::Base::session class ActiveRecord::Base...