lib/rails-footnotes/notes/routes_note.rb in rails3-footnotes-4.0.0.pre.2 vs lib/rails-footnotes/notes/routes_note.rb in rails3-footnotes-4.0.0.pre.3

- old
+ new

@@ -46,10 +46,10 @@ module Routes # Filter routes according to the filter sent # def filtered_routes(filter = {}) return [] unless filter.is_a?(Hash) - return routes.reject do |r| + return routes.reject do |r| filter_diff = filter.diff(r.requirements) route_diff = r.requirements.diff(filter) (filter_diff == filter) || (filter_diff != route_diff) end end