lib/rubocop/ruby1_8/railtie.rb in rubocop-ruby1_8-1.0.4 vs lib/rubocop/ruby1_8/railtie.rb in rubocop-ruby1_8-1.0.5
- old
+ new
@@ -3,11 +3,10 @@
class Railtie < Rails::Railtie
railtie_name :rubocop_ruby1_8
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::Ruby18.install_tasks
end
end
end
end
end