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 OPTIONS verb in mapper #37370

merged 2 commits into from Oct 5, 2019


Copy link

BookOfGreg commented Oct 4, 2019


Add a helper for the OPTIONS verb. The router's Mapper already allows the syntax below making this just sugar.

match 'bar', to: 'foo#bar', via: :options

With this PR:

options 'bar', to: 'foo#bar'

Other Information

Related to #37369

@rails-bot rails-bot bot added the actionpack label Oct 4, 2019
@kaspth kaspth merged commit 918ebcb into rails:master Oct 5, 2019
2 checks passed
2 checks passed
buildkite/rails Build #64156 passed (10 minutes, 34 seconds)
codeclimate All good!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
2 participants
You can’t perform that action at this time.