method
optional_format?
v4.2.7 -
Show latest stable
- Class:
ActionDispatch::Routing::Mapper::Mapping
optional_format?(path, format)private
No documentation available.
# File actionpack/lib/action_dispatch/routing/mapper.rb, line 146
def optional_format?(path, format)
format != false && !path.include?(':format') && !path.end_with?('/')
end