Flowdock
method

normalize_filter

Importance_0
v5.2.3 - Show latest stable - 0 notes - Class: RoutesInspector
normalize_filter(filter) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File actionpack/lib/action_dispatch/routing/inspector.rb, line 85
        def normalize_filter(filter)
          if filter.is_a?(Hash) && filter[:controller]
            { controller: /#{filter[:controller].underscore.sub(/_?controller\z/, "")}/ }
          elsif filter
            { controller: /#{filter}/, action: /#{filter}/, verb: /#{filter}/, name: /#{filter}/, path: /#{filter}/ }
          end
        end
Register or log in to add new notes.