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