Skip to content

Commit c1d5cd7

Browse files
authored
Merge pull request #746 from koic/enable_global_active_support_extensions_enabled_option
Enable `ActiveSupportExtensionsEnabled` option by default
2 parents e5b727a + d6a8a81 commit c1d5cd7

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* [#746](https://github.com/rubocop/rubocop-rails/pull/746): Enable `ActiveSupportExtensionsEnabled` option by default. ([@koic][])

config/default.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ AllCops:
1010
# Exclude db/schema.rb and db/[CONFIGURATION_NAMESPACE]_schema.rb by default.
1111
# See: https://guides.rubyonrails.org/active_record_multiple_databases.html#setting-up-your-application
1212
- db/*schema.rb
13+
# Enable checking Active Support extensions.
14+
# See: https://docs.rubocop.org/rubocop/configuration.html#enable-checking-active-support-extensions
15+
ActiveSupportExtensionsEnabled: true
1316
# What version of Rails is the inspected code using? If a value is specified
1417
# for TargetRailsVersion then it is used. Acceptable values are specified
1518
# as a float (i.e. 5.1); the patch version of Rails should not be included.

0 commit comments

Comments
 (0)