diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-02-04 06:25:57 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-02-04 06:25:57 +0300 |
commit | 655fbc6bddb1d5f8df3e50f2896e5c6c276628b8 (patch) | |
tree | 0e513550564fda1523eade009a7a74cae42aed44 /lib/tasks/rubocop.rake | |
parent | 7b233ea853df7c13be688c0e47636d2750453f31 (diff) |
Dont load rubocop in prod env
Diffstat (limited to 'lib/tasks/rubocop.rake')
-rw-r--r-- | lib/tasks/rubocop.rake | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/tasks/rubocop.rake b/lib/tasks/rubocop.rake index c28e529f86d..ddfaf5d51f2 100644 --- a/lib/tasks/rubocop.rake +++ b/lib/tasks/rubocop.rake @@ -1,2 +1,4 @@ -require 'rubocop/rake_task' -RuboCop::RakeTask.new +unless Rails.env.production? + require 'rubocop/rake_task' + RuboCop::RakeTask.new +end |