This project is archived and is in readonly mode.
Adding Regexp support for :only and :except options on filter_chains
-
Ben VandenBos
class MyController < ActionController::Base before_filter :auth, :only => Regexp.new(/.*_create/) end -
josh
- State changed from new to wontfix
Nice looking patch. However, you can already do this.
class MyController < ActionController::Base before_filter :auth, :if => Proc.new { |controller| controller.action_name =~ /.*_create/ } endHopefully that solves your problem.
-
Ben VandenBos
Hahaha... of course.. guess I need to work on my googling..
thanks!
On Fri, Aug 29, 2008 at 12:47 PM, Lighthouse support@lighthouseapp.comwrote:
