Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Before/After Filters

#42

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.

Reported by Matt Todd · May 23rd, 2008 @ 01:31 PM

State: resolved
Milestone: Release 0.5.1
Assigned to: Matt Todd Matt Todd

Activity

  1. Matt Todd
    Matt Todd
    • State changed from new to resolved

    (from [51f4e9a1e03568ed29d536db50615d51b59fbb75]) Merged filters with response headers. [#42 state:resolved]

    http://github.com/mtodd/halcyon/...

    June 24th, 2008 @ 07:12 PM

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.