@@ -502,7 +502,7 class Project < ActiveRecord::Base | |||||
502 | assignable.select {|m| m.roles.detect {|role| role.assignable?}}.collect {|m| m.principal}.sort |
|
502 | assignable.select {|m| m.roles.detect {|role| role.assignable?}}.collect {|m| m.principal}.sort | |
503 | end |
|
503 | end | |
504 |
|
504 | |||
505 | # Returns the mail adresses of users that should be always notified on project events |
|
505 | # Returns the mail addresses of users that should be always notified on project events | |
506 | def recipients |
|
506 | def recipients | |
507 | notified_users.collect {|user| user.mail} |
|
507 | notified_users.collect {|user| user.mail} | |
508 | end |
|
508 | end | |
@@ -514,7 +514,7 class Project < ActiveRecord::Base | |||||
514 | end |
|
514 | end | |
515 |
|
515 | |||
516 | # Returns a scope of all custom fields enabled for project issues |
|
516 | # Returns a scope of all custom fields enabled for project issues | |
517 | # (explictly associated custom fields and custom fields enabled for all projects) |
|
517 | # (explicitly associated custom fields and custom fields enabled for all projects) | |
518 | def all_issue_custom_fields |
|
518 | def all_issue_custom_fields | |
519 | @all_issue_custom_fields ||= IssueCustomField. |
|
519 | @all_issue_custom_fields ||= IssueCustomField. | |
520 | sorted. |
|
520 | sorted. |
General Comments 0
You need to be logged in to leave comments.
Login now