Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow path => controller#action in Routes #102

Merged
merged 1 commit into from
Aug 8, 2019

Commits on Aug 8, 2019

  1. Allow path => controller#action in Routes

    The `'path' => 'controller#action'` is a supported short-hand syntax
    for Rails routes as documented [here][1]. The current type is too
    restrictive and does not support this valid syntax. This change modifies
    the first argument type so that it supports the Hash syntax.
    
    [1]: https://github.com/rails/rails/blob/master/actionpack/lib/action_dispatch/routing/mapper.rb#L1605
    panthomakos committed Aug 8, 2019
    Configuration menu
    Copy the full SHA
    62f749c View commit details
    Browse the repository at this point in the history