[Patch] Send arguments to filter methods.
Reported by Shay Arnett | April 10th, 2008 @ 10:52 PM | in 0.9.4
Added the ability to pass arguments to the method used in a before/after filter.
EX.
class Post < Application
before :has_role, :with =>["Admin","Writer"], :exclude => [:index]
def index
end
def create
end
end
Comments and changes to this ticket
-
-
Ezra Zygmuntowicz April 10th, 2008 @ 11:02 PM
- → Assigned user changed from to Ezra Zygmuntowicz
- → Milestone changed from to 0.9.4
- → State changed from new to resolved
Nice one Shay, applied.
-
Shay Arnett April 10th, 2008 @ 11:32 PM
- → State changed from resolved to open
Shouldn't have deleted the key when assigning it. It caused subsequent requests to the controller where it was used to error 500.
-
Please Login or create a free account to add a new comment.
You can update this ticket by sending an email to from your email client. (help)
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
