Skip to content
Permalink
Browse files

Adjusted mode URL filter recognition logic.

  • Loading branch information...
Laszlo Papp
Laszlo Papp committed Aug 12, 2011
1 parent 66b8661 commit c6c646f947c446b091b708bfb4ff68225ac3c980
Showing with 2 additions and 2 deletions.
  1. +2 −2 vendor/plugins/routing-filter/lib/routing_filter/mode.rb
@@ -13,14 +13,14 @@ def modes_pattern
end

def modes_regexp
@@modes_regexp ||= %r(^/(#{modes_pattern})(?=/|$))
@@modes_regexp ||= %r(^/(#{self.modes_pattern})(?=/|$))
end
end

def around_recognize(path, env, &block)
mode = extract_mode!(path)
returning yield do |params|
@@current_mode = params[:mode] = mode if mode
@@current_mode = params[:mode] = mode
end
end

0 comments on commit c6c646f

Please sign in to comment.
You can’t perform that action at this time.