Skip to content

Instantly share code, notes, and snippets.

@hayesr
Last active March 22, 2017 04:54
Show Gist options
  • Save hayesr/39ea9a37e17c4622c239172a80ce6c4e to your computer and use it in GitHub Desktop.
Save hayesr/39ea9a37e17c4622c239172a80ce6c4e to your computer and use it in GitHub Desktop.

Revisions

  1. hayesr revised this gist Mar 22, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion find_actions_without_params.rb
    Original file line number Diff line number Diff line change
    @@ -1 +1 @@
    /(get|post|put|patch)\s+:\w+,\s+[^params].+/
    /(?:get|put|post|patch)\s+:\w+,\s+(?!params).+/
  2. hayesr created this gist Mar 22, 2017.
    1 change: 1 addition & 0 deletions find_actions_without_params.rb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    /(get|post|put|patch)\s+:\w+,\s+[^params].+/