search for: authorize_custom

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

Did you mean: authorize_customer
2006 Jul 14
4
sending additional parameters to before_filter
...application. i was going to modify my authorize function so that i could pass the required role to it and have it check the current user for that role. i am using before_filter and would like to have just one function instead of writing one for each role like so: authorize(role) instead of: authorize_customer and authorise_csr but i don''t know what i need to do so that i can do something like: before_filter :authorize(''Admin'') -- Posted via http://www.ruby-forum.com/.