only load rubocop rake tasks in dev/test

This commit is contained in:
Peter Bhat Harkins 2018-04-04 08:16:06 -05:00
parent f287d111e8
commit 4606f58756
1 changed files with 4 additions and 2 deletions

View File

@ -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