I want to redistribute incoming requests to different controllers,
e.g. depending upon the request’s user id a request should be
dispatched to user_owner_controller or user_other_controller.
So far I’ve just extended RouteSet to ask the controller which in turn
should return the ‘real’ controller that should be executed:
alias_method :recognize_orig, :recognize
def recognize(request) controller = recognize_orig(request) if defined? controller.acl then controller.acl else controller end end
I’ve got the following problem: in the controller’s acl method neither
session nor param is populated. Is there any way to create those
Or: is there a better way to accomplish the needed behaviour?