Refactor #13895
Replace deprecated :to with :action in routes
Description
Rails 4.2 deprecates route specifications with :to when they contain only an action name, issuing warnings. They should be using :action instead.
http://edgeguides.rubyonrails.org/4_2_release_notes.html#action-pack-deprecations
:to specifications with "controller#action" remain valid and unchanged.
Associated revisions
History
#1
Updated by The Foreman Bot about 6 years ago
- Status changed from Assigned to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/3236 added
#2
Updated by Dominic Cleal about 6 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset b564efcd155cc863b4a1f37e769121f116ef5897.
#3
Updated by Dominic Cleal about 6 years ago
- Legacy Backlogs Release (now unused) set to 136
fixes #13895 - replace :to with :action in routes
Using :to with a string that doesn't contain # is deprecated since
Rails 4.2, and it should instead use :action or :controller as
appropriate.
http://edgeguides.rubyonrails.org/4_2_release_notes.html#action-pack-deprecations