search for: projectscope

Displaying 1 result from an estimated 1 matches for "projectscope".

Did you mean: project_scope
2006 Jul 16
1
Rails Core Weekly July 2 - July 16
...em 4. introduce freeze/unfreeze for plugins Jeremy Kemper agrees gems are a good fit. Exciting stuff. [ http://www.ruby-forum.com/topic/71523#new ] Martin is working on patch that in his opinion improves on ActionController filters. His solution could work like this: add_filter :filter => ProjectScope.new, :except => [:list,:index] class ProjectScope def filter(controller) Project.with_scope( ..etc.. ) yield end end end add_filter :filter => :project_scope, :except => [:list, :index] def project_scope yield # this way drops the clean filter s...