Skip to content

Commit

Permalink
fix: limit to initializers
Browse files Browse the repository at this point in the history
  • Loading branch information
markokajzer committed Jan 10, 2024
1 parent 651df38 commit 1f40856
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion changelog/change_fix_do_not_allow.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
* [#1229](https://github.com/rubocop/rubocop-rails/pull/1229): fix: do not allow EnvironmentVariableAccess in Ruby files within config. ([@markokajzer][])
* [#1229](https://github.com/rubocop/rubocop-rails/pull/1229): fix: do not allow EnvironmentVariableAccess within initializers. ([@markokajzer][])
2 changes: 1 addition & 1 deletion docs/modules/ROOT/pages/cops_rails.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -2068,7 +2068,7 @@ ENV["FOO"] = "bar"
| Name | Default value | Configurable values
| Include
| `+app/**/*.rb+`, `+config/**/*.rb+`, `+lib/**/*.rb+`
| `+app/**/*.rb+`, `+config/initializers/**/*.rb+`, `+lib/**/*.rb+`
| Array
| Exclude
Expand Down

0 comments on commit 1f40856

Please sign in to comment.