Displaying 1 result from an estimated 1 matches for "application_scop".
Did you mean:
application_scope
2011 Jul 11
2
Can't get this Rspec test to pass
...end
module InstanceMethods
def method_missing(name, *args, &block)
return set_scope_for($1, args) if name.to_s =~
/^set_scope_for_(.*)/
super
end
private
def set_scope_for(scope, *args)
if session[scope].class == Array
application_scope = {:finder_scope => session[scope],
:creator_scope => nil }
else
application_scope = {:finder_scope => [session[scope]],
:creator_scope => session[scope] }
end
application_scope[:finder_scope] = application_scope[:finder_scope]
+ Thread.current[s...