Flowdock
method

normalize_filter

Importance_0
Ruby on Rails latest stable (v5.2.3) - 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.