#42 ✓resolved
Matt Todd

Before/After Filters

Reported by Matt Todd | 2008-05-23 13:31:48 UTC | 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

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.

New ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

People watching this ticket

Pages