File tree Expand file tree Collapse file tree 3 files changed +8
-1
lines changed
lib/rails/generators/rails/app/templates/config/environments Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Original file line number Diff line number Diff line change
1
+ * Set ` config.action_view.annotate_rendered_view_with_filenames ` to ` true ` in the
2
+ development environment.
3
+
4
+ * Adrian Marin*
5
+
1
6
* Support ` BACKTRACE ` ENV variable to turn off backtrace cleaning.
2
7
3
8
Useful for debugging framework code:
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ Rails.application.configure do
78
78
# config.i18n.raise_on_missing_translations = true
79
79
80
80
# Annotate rendered view with file names.
81
- # config.action_view.annotate_rendered_view_with_filenames = true
81
+ config.action_view.annotate_rendered_view_with_filenames = true
82
82
83
83
<%- unless skip_action_cable? -%>
84
84
# Uncomment if you wish to allow Action Cable access from any origin.
Original file line number Diff line number Diff line change @@ -143,6 +143,8 @@ def build_app(options = {})
143
143
config.action_controller.allow_forgery_protection = false
144
144
RUBY
145
145
146
+ add_to_env_config :development , "config.action_view.annotate_rendered_view_with_filenames = false"
147
+
146
148
remove_from_env_config ( "development" , "config.generators.apply_rubocop_autocorrect_after_generate!" )
147
149
end
148
150
You can’t perform that action at this time.
0 commit comments