aboutsummaryrefslogtreecommitdiffstats
path: root/guides/bug_report_templates/action_controller_master.rb
diff options
context:
space:
mode:
Diffstat (limited to 'guides/bug_report_templates/action_controller_master.rb')
-rw-r--r--guides/bug_report_templates/action_controller_master.rb9
1 files changed, 6 insertions, 3 deletions
diff --git a/guides/bug_report_templates/action_controller_master.rb b/guides/bug_report_templates/action_controller_master.rb
index 7644f6fe4a..ffd81c0079 100644
--- a/guides/bug_report_templates/action_controller_master.rb
+++ b/guides/bug_report_templates/action_controller_master.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
begin
require "bundler/inline"
rescue LoadError => e
@@ -7,15 +9,16 @@ end
gemfile(true) do
source "https://rubygems.org"
+
+ git_source(:github) { |repo| "https://github.com/#{repo}.git" }
+
gem "rails", github: "rails/rails"
- gem "arel", github: "rails/arel"
end
require "action_controller/railtie"
class TestApp < Rails::Application
- config.root = File.dirname(__FILE__)
- secrets.secret_token = "secret_token"
+ config.root = __dir__
secrets.secret_key_base = "secret_key_base"
config.logger = Logger.new($stdout)