Skip to content

Commit 299fe84

Browse files
Roman KushnirRKushnir
authored andcommitted
Include URL helpers in TestController in bug report templates
[ci skip] Fixes rails#12848.
1 parent 331c59f commit 299fe84

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

guides/bug_report_templates/action_controller_gem.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ class TestApp < Rails::Application
1919
end
2020

2121
class TestController < ActionController::Base
22+
include Rails.application.routes.url_helpers
23+
2224
def index
2325
render text: 'Home'
2426
end

guides/bug_report_templates/action_controller_master.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ class TestApp < Rails::Application
2828
end
2929

3030
class TestController < ActionController::Base
31+
include Rails.application.routes.url_helpers
32+
3133
def index
3234
render text: 'Home'
3335
end

0 commit comments

Comments
 (0)