From 0791626902f961f5ef5a96e79cc5341f9a5263c4 Mon Sep 17 00:00:00 2001 From: Laust Rud Jacobsen Date: Wed, 4 Nov 2015 20:48:42 +0100 Subject: [PATCH] Rubocop: allow then clauses to be indented --- .rubocop.yml | 1 + app/models/problem.rb | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.rubocop.yml b/.rubocop.yml index d75634c..8ef403e 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -37,3 +37,4 @@ Style/SpaceAroundOperators: - '=' - '=>' - '||=' + - 'then' diff --git a/app/models/problem.rb b/app/models/problem.rb index d40a297..7f45941 100644 --- a/app/models/problem.rb +++ b/app/models/problem.rb @@ -214,11 +214,11 @@ class Problem def self.ordered_by(sort, order) case sort - when "app" then order_by(["app_name", order]) - when "message" then order_by(["message", order]) + when "app" then order_by(["app_name", order]) + when "message" then order_by(["message", order]) when "last_notice_at" then order_by(["last_notice_at", order]) when "last_deploy_at" then order_by(["last_deploy_at", order]) - when "count" then order_by(["notices_count", order]) + when "count" then order_by(["notices_count", order]) else raise("\"#{sort}\" is not a recognized sort") end end -- libgit2 0.21.2