#252 √ resolved
Shay Arnett

[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

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 »

Tags