AutoFix RuboCop Style/RedundantConstantBase

This commit is contained in:
Pieter Oliver 2025-07-08 17:19:14 +01:00
parent e6af1dabf8
commit 3a71be798e
No known key found for this signature in database
GPG key ID: AAC5BA1478582D1F
2 changed files with 1 additions and 7 deletions

View file

@ -224,12 +224,6 @@ Style/QuotedSymbols:
Exclude:
- 'spec/lib/grape_logging/loggers/response_spec.rb'
# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
Style/RedundantConstantBase:
Exclude:
- 'lib/grape_logging/util/parameter_filter.rb'
# Offense count: 3
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods, MaxChainLength.

View file

@ -1,4 +1,4 @@
if defined?(::Rails.application)
if defined?(Rails.application)
if Gem::Version.new(Rails.version) < Gem::Version.new('6.0.0')
class ParameterFilter < ActionDispatch::Http::ParameterFilter
def initialize(_replacement, filter_parameters)