Skip to content

Commit f7ea649

Browse files
committed
Implement (style) suggestions.
1 parent 6637c1e commit f7ea649

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

app/models/issue.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ class Issue < ActiveRecord::Base
2828
scope :cared, ->(user) { where(assignee_id: user) }
2929
scope :authored, ->(user) { where(author_id: user) }
3030
scope :open_for, ->(user) { opened.assigned(user) }
31-
scope :assigned, where("assignee_id IS NOT NULL")
32-
scope :unassigned, where("assignee_id IS NULL")
31+
scope :assigned, -> { where("assignee_id IS NOT NULL") }
32+
scope :unassigned, -> { where("assignee_id IS NULL") }
3333

3434
state_machine :state, initial: :opened do
3535
event :close do

app/views/milestones/show.html.haml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@
5656

5757

5858
.row
59-
=render(partial: 'issues', :locals => {title: 'Unstarted Issues (open and unassigned)', issues: @issues.opened.unassigned})
59+
= render(partial: 'issues', locals: {title: 'Unstarted Issues (open and unassigned)', issues: @issues.opened.unassigned})
6060

61-
=render(partial: 'issues', :locals => {title: 'Ongoing Issues (open and assigned)', issues: @issues.opened.assigned})
61+
= render(partial: 'issues', locals: {title: 'Ongoing Issues (open and assigned)', issues: @issues.opened.assigned})
6262

6363
.row
6464
.span6
@@ -75,7 +75,7 @@
7575
&ndash;
7676
= link_to_gfm truncate(merge_request.title, length: 60), [@project, merge_request]
7777

78-
=render(:partial => 'issues', :locals => {title: 'Completed Issues (closed)', issues: @issues.closed})
78+
= render(:partial => 'issues', locals: {title: 'Completed Issues (closed)', issues: @issues.closed})
7979

8080
%hr
8181
%h6 Participants:

0 commit comments

Comments
 (0)