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