Skip to content
Browse files

removed #skip_filter

git-svn-id: https://svn.thoughtbot.com/plugins/when/trunk@316 7bbfaf0e-4d1d-0410-9690-a8bb5f8ef2aa
  • Loading branch information...
1 parent f53f323 commit a228c1a859e146d456d225dd21ff67012eb73071 jcarroll committed Feb 12, 2008
Showing with 0 additions and 18 deletions.
  1. +0 −18 lib/filters.rb
View
18 lib/filters.rb
@@ -28,24 +28,6 @@ def #{filter}_with_conditions (*filters, &block)
class_eval src, __FILE__, __LINE__
end
- def skip_filter_with_conditions(*filters, &block)
- options = filters.extract_options!
- if block_given?
- filters << block
- end
- filters.each do |filter|
- skip_filter_without_conditions do |controller|
- unless (! options[:if].nil? && ! ActiveRecord::Base.evaluate_condition(options[:if], controller)) ||
- (! options[:unless].nil? && ActiveRecord::Base.evaluate_condition(options[:unless], controller))
-raise
- skip_filter_in_chain filter
- end
- end
- end
- end
- alias_method_chain :skip_filter, :conditions
-
-
end
end

0 comments on commit a228c1a

Please sign in to comment.
Something went wrong with that request. Please try again.