lib/rubocop/ruby2_6/railtie.rb in rubocop-ruby2_6-2.0.2 vs lib/rubocop/ruby2_6/railtie.rb in rubocop-ruby2_6-2.0.3
- old
+ new
@@ -3,11 +3,10 @@
class Railtie < Rails::Railtie
railtie_name :rubocop_ruby2_6
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::Ruby26.install_tasks
end
end
end
end
end