search for: set_aaa_uid

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

2006 Mar 28
0
How to set session variable in plug-ins
...Test #:nodoc: def self.included(base) base.extend(ClassMethods) end module ClassMethods def uses_test_plug(options = {}) class_eval do extend ::Legacy::Rails::Test::InstanceMethods end before_filter do |controller| set_aaa_uid("jdoe") end end end module InstanceMethods def set_aaa_uid(uid) session[:aaa_uid] = uid end end module SingletonMethods end end end end ActionController::Base.class_eval do include ::Legacy::Rails::Test...