Displaying 1 result from an estimated 1 matches for "user_requests_authorization_to".
2007 Nov 23
2
Create my own dynamic "finder" method?
Hi all
I''m having an authorization method that looks like the following:
def user_requests_authorization_to(right_name)
...
end
I find it boring to always use
user_requests_authorization_to(''EDIT'')
user_requests_authorization_to(''CREATE'')
etc., so I thought I could implement my own dynamic method, like the
dynamic finders! Instead of the calls above I''d l...