lib/rubocop/cop/base.rb in rubocop-1.30.1 vs lib/rubocop/cop/base.rb in rubocop-1.31.0
- old
+ new
@@ -218,9 +218,13 @@
def target_rails_version
@config.target_rails_version
end
+ def active_support_extensions_enabled?
+ @config.active_support_extensions_enabled?
+ end
+
def relevant_file?(file)
file == RuboCop::AST::ProcessedSource::STRING_SOURCE_NAME ||
(file_name_matches_any?(file, 'Include', true) &&
!file_name_matches_any?(file, 'Exclude', false))
end