lib/rubocop/ruby2_7/railtie.rb in rubocop-ruby2_7-2.0.3 vs lib/rubocop/ruby2_7/railtie.rb in rubocop-ruby2_7-2.0.4

- old
+ new

@@ -3,11 +3,10 @@ class Railtie < Rails::Railtie railtie_name :rubocop_ruby2_7 if Rails.env.test? || Rails.env.development? rake_tasks do - path = File.expand_path(__dir__) - Dir.glob("#{path}/rakelib/**/*.rake").each { |f| load f } + Rubocop::Ruby27.install_tasks end end end end end