Commit 0791626902f961f5ef5a96e79cc5341f9a5263c4
1 parent
e04936bb
Exists in
master
and in
1 other branch
Rubocop: allow then clauses to be indented
Showing
2 changed files
with
4 additions
and
3 deletions
Show diff stats
.rubocop.yml
app/models/problem.rb
@@ -214,11 +214,11 @@ class Problem | @@ -214,11 +214,11 @@ class Problem | ||
214 | 214 | ||
215 | def self.ordered_by(sort, order) | 215 | def self.ordered_by(sort, order) |
216 | case sort | 216 | case sort |
217 | - when "app" then order_by(["app_name", order]) | ||
218 | - when "message" then order_by(["message", order]) | 217 | + when "app" then order_by(["app_name", order]) |
218 | + when "message" then order_by(["message", order]) | ||
219 | when "last_notice_at" then order_by(["last_notice_at", order]) | 219 | when "last_notice_at" then order_by(["last_notice_at", order]) |
220 | when "last_deploy_at" then order_by(["last_deploy_at", order]) | 220 | when "last_deploy_at" then order_by(["last_deploy_at", order]) |
221 | - when "count" then order_by(["notices_count", order]) | 221 | + when "count" then order_by(["notices_count", order]) |
222 | else raise("\"#{sort}\" is not a recognized sort") | 222 | else raise("\"#{sort}\" is not a recognized sort") |
223 | end | 223 | end |
224 | end | 224 | end |