- Defined in:
Routing constraints for Alchemy's strong catch all route.
Alchemy has a very strong catch all route. But we don't want to handle all requests.
For instance we only want to handle html and rss requests and don't want to swallow the rails/info routes in development mode.
Constant Summary collapse
- LOCALE_REGEXP =
Instance Method Summary collapse
Instance Method Details
#matches?(request) ⇒ Boolean
15 16 17 18 19 20
# File 'lib/alchemy/routing_constraints.rb', line 15 def matches?(request) @request = request @params = @request.params handable_format? && no_rails_route? end