Commit 68b601f6afeb435e9cfa1aa88f9db718f2d3596f
1 parent
ed9b661c
Exists in
master
and in
4 other branches
Fix Issue.open_for
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/models/issue.rb
... | ... | @@ -27,7 +27,7 @@ class Issue < ActiveRecord::Base |
27 | 27 | |
28 | 28 | scope :cared, ->(user) { where(assignee_id: user) } |
29 | 29 | scope :authored, ->(user) { where(author_id: user) } |
30 | - scope :open_for, ->(user) { opened.assigned(user) } | |
30 | + scope :open_for, ->(user) { opened.assigned_to(user) } | |
31 | 31 | |
32 | 32 | state_machine :state, initial: :opened do |
33 | 33 | event :close do | ... | ... |