]> source.dussan.org Git - redmine.git/commitdiff
Expose validate_back_url as helper method (#32850).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 2 Feb 2020 08:38:47 +0000 (08:38 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 2 Feb 2020 08:38:47 +0000 (08:38 +0000)
Patch by Holger Just.

git-svn-id: http://svn.redmine.org/redmine/trunk@19487 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/application_controller.rb

index fd4554f0bf648c8073cc23d85c7c79fcc4bebedb..e0ea88553c22a1c9c661c5742b992c8e8d892a84 100644 (file)
@@ -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)