diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2020-02-02 08:38:47 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2020-02-02 08:38:47 +0000 |
commit | b3cda4fd61913af4a2bb2b6e47354d3e389cbad6 (patch) | |
tree | 6972c0251f057c7706d4f7f4994394f6dec2d4f2 /app/controllers/application_controller.rb | |
parent | 914f57fefcee75d94ec88e466d94edf6d3ac47eb (diff) | |
download | redmine-b3cda4fd61913af4a2bb2b6e47354d3e389cbad6.tar.gz redmine-b3cda4fd61913af4a2bb2b6e47354d3e389cbad6.zip |
Expose validate_back_url as helper method (#32850).
Patch by Holger Just.
git-svn-id: http://svn.redmine.org/redmine/trunk@19487 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/application_controller.rb')
-rw-r--r-- | app/controllers/application_controller.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index fd4554f0b..e0ea88553 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -480,11 +480,13 @@ class ApplicationController < ActionController::Base return path end private :validate_back_url + helper_method :validate_back_url def valid_back_url?(back_url) !!validate_back_url(back_url) end private :valid_back_url? + helper_method :valid_back_url? # Redirects to the request referer if present, redirects to args or call block otherwise. def redirect_to_referer_or(*args, &block) |