search for: silo_filter

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

Did you mean: file_filter
2006 Jun 28
2
[PATCH] Bug fixes and additions to scoped_access
...ial part of ScopedAccess::Filter#before looks like this: @scoping = controller.instance_eval(@scoping.to_s) if @scoping.is_a?(Symbol) This makes @scoping not a symbol on the first run and @scoping will never be evaluated again. This would fail in code which looks like this: For example: def silo_filter(klass) filter = ScopedAccess::ClassScoping.new klass, :silo_id => @silo.id end where, @silo is set in a before_filter. I''ve also added in some code to check if the passed in scoping is a method. If it is, the method is called with the class as a parameter. This allows for more...