diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-06-17 13:29:50 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-06-17 20:00:50 +0300 |
commit | 68b601f6afeb435e9cfa1aa88f9db718f2d3596f (patch) | |
tree | 0c63cdab97464f150627df34d178a0d350e2e145 /app/models/issue.rb | |
parent | ed9b661c9d3151805e5b9ab678f588bdabd49b2d (diff) | |
download | gitlab-ce-68b601f6afeb435e9cfa1aa88f9db718f2d3596f.tar.gz |
Fix Issue.open_for
Diffstat (limited to 'app/models/issue.rb')
-rw-r--r-- | app/models/issue.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/issue.rb b/app/models/issue.rb index 91dd6477b04..de6e015c68e 100644 --- a/app/models/issue.rb +++ b/app/models/issue.rb @@ -27,7 +27,7 @@ class Issue < ActiveRecord::Base scope :cared, ->(user) { where(assignee_id: user) } scope :authored, ->(user) { where(author_id: user) } - scope :open_for, ->(user) { opened.assigned(user) } + scope :open_for, ->(user) { opened.assigned_to(user) } state_machine :state, initial: :opened do event :close do |