diff options
| author | Douwe Maan <douwe@gitlab.com> | 2015-04-10 18:30:02 +0200 |
|---|---|---|
| committer | Douwe Maan <douwe@gitlab.com> | 2015-04-10 18:31:07 +0200 |
| commit | 0ece6bd82839d0c9e3e27b65a6a201771f09190e (patch) | |
| tree | 40c877c8377f2bcad111de9e3bdf0daabdb0c3a3 /app/controllers/application_controller.rb | |
| parent | 6cf7dd625a7db143c146de1b146cba7dbcbc2576 (diff) | |
| download | gitlab-ce-0ece6bd82839d0c9e3e27b65a6a201771f09190e.tar.gz | |
Use `\A` and `\z` in regexes instead of `^` and `$`.
Diffstat (limited to 'app/controllers/application_controller.rb')
| -rw-r--r-- | app/controllers/application_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 80e983b5314..0521a9ef8cf 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -153,7 +153,7 @@ class ApplicationController < ActionController::Base end def method_missing(method_sym, *arguments, &block) - if method_sym.to_s =~ /^authorize_(.*)!$/ + if method_sym.to_s =~ /\Aauthorize_(.*)!\z/ authorize_project!($1.to_sym) else super |
