Skip to content

Commit

Permalink
Remove a useless constant
Browse files Browse the repository at this point in the history
It seems that unnecessary constant was left behind when introducing the Inject mechanism,
inspired by RuboCop RSpec, during the initial implementation of this gem.
  • Loading branch information
koic committed Jan 8, 2025
1 parent 88b9dc5 commit 1eacbc3
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/rubocop/rails.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ module RuboCop
module Rails
PROJECT_ROOT = Pathname.new(__dir__).parent.parent.expand_path.freeze
CONFIG_DEFAULT = PROJECT_ROOT.join('config', 'default.yml').freeze
CONFIG = YAML.safe_load(CONFIG_DEFAULT.read, permitted_classes: [Regexp, Symbol]).freeze

private_constant(:CONFIG_DEFAULT, :PROJECT_ROOT)

Expand Down

0 comments on commit 1eacbc3

Please sign in to comment.