From 96d49bf04ce77c975fe500f4d961e4a1ffed4c26 Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Sun, 30 Dec 2012 14:43:00 +0200 Subject: Use sdoc to generate application code documentation --- doc/code/classes/Notify.html | 639 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 639 insertions(+) create mode 100644 doc/code/classes/Notify.html (limited to 'doc/code/classes/Notify.html') diff --git a/doc/code/classes/Notify.html b/doc/code/classes/Notify.html new file mode 100644 index 00000000000..ea7403812a6 --- /dev/null +++ b/doc/code/classes/Notify.html @@ -0,0 +1,639 @@ + + + + + Notify + + + + + + + + + + + + + +
+
+ + + + + + + + + + + + + + + +
Methods
+
+ +
I
+
+ +
+ +
N
+
+ +
+ +
P
+
+ +
+ +
R
+
+ +
+ +
+ + + + +
Included Modules
+
    + +
  • + + Resque::Mailer + +
  • + +
+ + + + + + + + + + + + + + + + + + +
Instance Public methods
+ +
+
+ + issue_status_changed_email(recipient_id, issue_id, status, updated_by_user_id) + + +
+ + +
+ +
+ + + + + + +
+ + +
+
# File app/mailers/notify.rb, line 32
+def issue_status_changed_email(recipient_id, issue_id, status, updated_by_user_id)
+  @issue = Issue.find issue_id
+  @issue_status = status
+  @project = @issue.project
+  @updated_by = User.find updated_by_user_id
+  mail(to: recipient(recipient_id),
+      subject: subject("changed issue ##{@issue.id}", @issue.title))
+end
+
+
+ +
+ +
+
+ + new_issue_email(issue_id) + + +
+ + +
+

Issue

+
+ + + + + + +
+ + +
+
# File app/mailers/notify.rb, line 19
+def new_issue_email(issue_id)
+  @issue = Issue.find(issue_id)
+  @project = @issue.project
+  mail(to: @issue.assignee_email, subject: subject("new issue ##{@issue.id}", @issue.title))
+end
+
+
+ +
+ +
+
+ + new_merge_request_email(merge_request_id) + + +
+ + +
+

Merge Request

+
+ + + + + + +
+ + +
+
# File app/mailers/notify.rb, line 47
+def new_merge_request_email(merge_request_id)
+  @merge_request = MergeRequest.find(merge_request_id)
+  @project = @merge_request.project
+  mail(to: @merge_request.assignee_email, subject: subject("new merge request !#{@merge_request.id}", @merge_request.title))
+end
+
+
+ +
+ +
+
+ + new_user_email(user_id, password) + + +
+ + +
+

User

+
+ + + + + + +
+ + +
+
# File app/mailers/notify.rb, line 118
+def new_user_email(user_id, password)
+  @user = User.find(user_id)
+  @password = password
+  mail(to: @user.email, subject: subject("Account was created for you"))
+end
+
+
+ +
+ +
+
+ + note_commit_email(recipient_id, note_id) + + +
+ + +
+

Note

+
+ + + + + + +
+ + +
+
# File app/mailers/notify.rb, line 66
+def note_commit_email(recipient_id, note_id)
+  @note = Note.find(note_id)
+  @commit = @note.noteable
+  @commit = CommitDecorator.decorate(@commit)
+  @project = @note.project
+  mail(to: recipient(recipient_id), subject: subject("note for commit #{@commit.short_id}", @commit.title))
+end
+
+
+ +
+ +
+
+ + note_issue_email(recipient_id, note_id) + + +
+ + +
+ +
+ + + + + + +
+ + +
+
# File app/mailers/notify.rb, line 74
+def note_issue_email(recipient_id, note_id)
+  @note = Note.find(note_id)
+  @issue = @note.noteable
+  @project = @note.project
+  mail(to: recipient(recipient_id), subject: subject("note for issue ##{@issue.id}"))
+end
+
+
+ +
+ +
+
+ + note_merge_request_email(recipient_id, note_id) + + +
+ + +
+ +
+ + + + + + +
+ + +
+
# File app/mailers/notify.rb, line 81
+def note_merge_request_email(recipient_id, note_id)
+  @note = Note.find(note_id)
+  @merge_request = @note.noteable
+  @project = @note.project
+  mail(to: recipient(recipient_id), subject: subject("note for merge request !#{@merge_request.id}"))
+end
+
+
+ +
+ +
+
+ + note_wall_email(recipient_id, note_id) + + +
+ + +
+ +
+ + + + + + +
+ + +
+
# File app/mailers/notify.rb, line 88
+def note_wall_email(recipient_id, note_id)
+  @note = Note.find(note_id)
+  @project = @note.project
+  mail(to: recipient(recipient_id), subject: subject)
+end
+
+
+ +
+ +
+
+ + project_access_granted_email(user_project_id) + + +
+ + +
+

Project

+
+ + + + + + +
+ + +
+
# File app/mailers/notify.rb, line 99
+def project_access_granted_email(user_project_id)
+  @users_project = UsersProject.find user_project_id
+  @project = @users_project.project
+  mail(to: @users_project.user.email,
+       subject: subject("access to project was granted"))
+end
+
+
+ +
+ +
+
+ + project_was_moved_email(user_project_id) + + +
+ + +
+ +
+ + + + + + +
+ + +
+
# File app/mailers/notify.rb, line 107
+def project_was_moved_email(user_project_id)
+  @users_project = UsersProject.find user_project_id
+  @project = @users_project.project
+  mail(to: @users_project.user.email,
+       subject: subject("project was moved"))
+end
+
+
+ +
+ +
+
+ + reassigned_issue_email(recipient_id, issue_id, previous_assignee_id) + + +
+ + +
+ +
+ + + + + + +
+ + +
+
# File app/mailers/notify.rb, line 25
+def reassigned_issue_email(recipient_id, issue_id, previous_assignee_id)
+  @issue = Issue.find(issue_id)
+  @previous_assignee ||= User.find(previous_assignee_id)
+  @project = @issue.project
+  mail(to: recipient(recipient_id), subject: subject("changed issue ##{@issue.id}", @issue.title))
+end
+
+
+ +
+ +
+
+ + reassigned_merge_request_email(recipient_id, merge_request_id, previous_assignee_id) + + +
+ + +
+ +
+ + + + + + +
+ + +
+
# File app/mailers/notify.rb, line 53
+def reassigned_merge_request_email(recipient_id, merge_request_id, previous_assignee_id)
+  @merge_request = MergeRequest.find(merge_request_id)
+  @previous_assignee ||= User.find(previous_assignee_id)
+  @project = @merge_request.project
+  mail(to: recipient(recipient_id), subject: subject("changed merge request !#{@merge_request.id}", @merge_request.title))
+end
+
+
+ +
+
+ +
+ + \ No newline at end of file -- cgit v1.2.1