module

Athena::Routing::Generator::ConfigurableRequirementsInterface

Represents a URL generator that can be configured whether an exception should be generated when the parameters do not match the requirements.

Instance methods

strict_requirements=(enabled : Bool | Nil)

Sets how invalid parameters should be treated:

  • true - Raise an exception for mismatched requirements.
  • false - Do not raise an exception, but return an empty string.
  • nil - Disables checks, returning a URL with possibly invalid parameters.
Source
strict_requirements?

Returns the current strict requirements mode.

Source