From 936845d4585d048b6378ab9a1a42ba27cea31c94 Mon Sep 17 00:00:00 2001 From: Sam Bostock Date: Thu, 5 Jan 2023 21:40:53 -0500 Subject: [PATCH] [Fix #893] Add local to Rails/UnknownEnv --- changelog/change_add_local_to_railsunknownenv.md | 1 + config/default.yml | 2 ++ 2 files changed, 3 insertions(+) create mode 100644 changelog/change_add_local_to_railsunknownenv.md diff --git a/changelog/change_add_local_to_railsunknownenv.md b/changelog/change_add_local_to_railsunknownenv.md new file mode 100644 index 0000000000..6432c38fb6 --- /dev/null +++ b/changelog/change_add_local_to_railsunknownenv.md @@ -0,0 +1 @@ +* [#906](https://github.com/rubocop/rubocop-rails/pull/906): [Fix #893] Add local to Rails/UnknownEnv. ([@sambostock][]) diff --git a/config/default.yml b/config/default.yml index 066d9e604c..c53bbd6663 100644 --- a/config/default.yml +++ b/config/default.yml @@ -1078,9 +1078,11 @@ Rails/UnknownEnv: Description: 'Use correct environment name.' Enabled: true VersionAdded: '0.51' + VersionChanged: '<>' Environments: - development - test + - local # Rails 7.1 alias for development or test - production Rails/UnusedIgnoredColumns: