Flowdock
method

normalize_format!

Importance_0
v4.2.9 - Show latest stable - 0 notes - Class: ActionDispatch::Routing::Mapper::Mapping
normalize_format!(formatted) 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/mapper.rb, line 194
          def normalize_format!(formatted)
            if formatted == true
              @requirements[:format] ||= /.+/
            elsif Regexp === formatted
              @requirements[:format] = formatted
              @defaults[:format] = nil
            elsif String === formatted
              @requirements[:format] = Regexp.compile(formatted)
              @defaults[:format] = formatted
            end
          end
Register or log in to add new notes.