From 80afeb6dabda5f7704f41853f42e7498b621680a Mon Sep 17 00:00:00 2001 From: Bill Cromie Date: Tue, 16 Aug 2016 19:39:25 -0400 Subject: [PATCH] same with rubocop again --- lib/tasks/rubocop.rake | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/lib/tasks/rubocop.rake b/lib/tasks/rubocop.rake index 94fa15de1..d7309a68a 100644 --- a/lib/tasks/rubocop.rake +++ b/lib/tasks/rubocop.rake @@ -1,6 +1,7 @@ -require 'rubocop/rake_task' - -desc 'Run rubocop' -task :rubocop do - RuboCop::RakeTask.new +if Rails.env != 'production' + require 'rubocop/rake_task' + desc 'Run rubocop' + task :rubocop do + RuboCop::RakeTask.new + end end