diff --git a/Rakefile b/Rakefile index 3e8489ba..4ea37feb 100644 --- a/Rakefile +++ b/Rakefile @@ -2,8 +2,10 @@ # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake. require File.expand_path('../config/application', __FILE__) -require 'rubocop/rake_task' -RuboCop::RakeTask.new +if Rails.env.development? || Rails.env.test? + require 'rubocop/rake_task' + RuboCop::RakeTask.new +end Lobsters::Application.load_tasks