aboutsummaryrefslogtreecommitdiffstats
path: root/guides
diff options
context:
space:
mode:
authorRoman Kushnir <roman.kushnir@cmdigital.no>2013-11-11 16:46:58 +0200
committerRoman <broilerster@gmail.com>2013-11-11 21:28:26 +0200
commit299fe844dd38026ec194170c4e9e848fd0c1b0db (patch)
tree48d091a55f3dd2df5844f575588c057ca6a7efc9 /guides
parent331c59f47c04c4f924ff44fa6b9b44a141eb00c6 (diff)
downloadrails-299fe844dd38026ec194170c4e9e848fd0c1b0db.tar.gz
rails-299fe844dd38026ec194170c4e9e848fd0c1b0db.tar.bz2
rails-299fe844dd38026ec194170c4e9e848fd0c1b0db.zip
Include URL helpers in TestController in bug report templates
[ci skip] Fixes #12848.
Diffstat (limited to 'guides')
-rw-r--r--guides/bug_report_templates/action_controller_gem.rb2
-rw-r--r--guides/bug_report_templates/action_controller_master.rb2
2 files changed, 4 insertions, 0 deletions
diff --git a/guides/bug_report_templates/action_controller_gem.rb b/guides/bug_report_templates/action_controller_gem.rb
index 693bc320b3..89ac28671a 100644
--- a/guides/bug_report_templates/action_controller_gem.rb
+++ b/guides/bug_report_templates/action_controller_gem.rb
@@ -19,6 +19,8 @@ class TestApp < Rails::Application
end
class TestController < ActionController::Base
+ include Rails.application.routes.url_helpers
+
def index
render text: 'Home'
end
diff --git a/guides/bug_report_templates/action_controller_master.rb b/guides/bug_report_templates/action_controller_master.rb
index 5d88749118..d44fd9196a 100644
--- a/guides/bug_report_templates/action_controller_master.rb
+++ b/guides/bug_report_templates/action_controller_master.rb
@@ -28,6 +28,8 @@ class TestApp < Rails::Application
end
class TestController < ActionController::Base
+ include Rails.application.routes.url_helpers
+
def index
render text: 'Home'
end