Created
July 25, 2017 10:30
-
-
Save flanker/705fdbc11a94abf7c62c027e3946a933 to your computer and use it in GitHub Desktop.
search and replace to add `params` in controller tests when upgrading rails to 5.1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# TEXT TO FIND: ^(\s+)(get|post|put|patch|destroy) :(index|show|edit|update|new|create|destroy), ([^params].+[^,])$ | |
# REPLACE WITH: $1$2 :$3, params: {$4} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment