Before/After Filters
Reported by Matt Todd | May 23rd, 2008 @ 01:31 PM | in Release 0.5.1
Filters should be implemented so controllers can specify conditions for methods to be dispatched, etc.
class Users < Authenticated
# the Authenticated super-controller defines the
# +authenticated?+ method
before :authenticated?, :except => [:show, :list]
def update
# is protected
end
def show
# accessible sans authentication
end
end
Should accept the :except
and :only
options for specifying which methods to include for filtering.
Comments and changes to this ticket
-
Matt Todd June 24th, 2008 @ 07:12 PM
- State changed from new to resolved
(from [51f4e9a1e03568ed29d536db50615d51b59fbb75]) Merged filters with response headers. [#42 state:resolved]
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป