gitlabhq/app/models
Robb Kidd 16ceae895e Separate observing of Note and MergeRequests
* Move is_assigned? and is_being_xx? methods to IssueCommonality

  This is behavior merge requests have in common with issues. Moved
  methods to IssueCommonality role. Put specs directly into
  merge_request_spec because setup differs for issues and MRs
  specifically in the "closed" factory to use.

* Add MergeRequestObserver. Parallels IssueObserver in almost every way.

  Ripe for refactoring.

* Rename MailerObserver to NoteObserver

  With merge request observing moved out of MailerObserver, all that
  was left was Note logic. Renamed to NoteObserver, added tests and
  updated application config for new observer names. Refactored
  NoteObserver to use the note's author and not rely on current_user.

* Set current_user for MergeRequestObserver

  IssueObserver and MergeRequestObserver are the only observers that
  need a reference to the current_user that they cannot look up on
  the objects they are observing.
2012-10-10 17:59:25 -04:00
..
.gitkeep init commit 2011-10-09 00:36:38 +03:00
ability.rb simple refactoring 2012-10-09 04:10:04 +04:00
commit.rb Cache the value of safe_message 2012-10-02 19:00:41 -04:00
event.rb Context refactoring. Move Issues list, Search logic to context 2012-10-09 22:09:46 +03:00
group.rb Annotated 2012-10-09 11:14:17 +03:00
issue.rb Separate observing of Note and MergeRequests 2012-10-10 17:59:25 -04:00
key.rb Annotated 2012-10-09 11:14:17 +03:00
merge_request.rb Make MRs also count and display its commits' notes 2012-10-10 01:31:36 +02:00
milestone.rb Annotated 2012-10-09 11:14:17 +03:00
note.rb Make notes for merge requests include commit notes and add helpers 2012-10-10 12:06:30 +02:00
project.rb project.issues_labels method 2012-10-09 20:39:06 +03:00
project_hook.rb Annotated 2012-10-09 11:14:17 +03:00
protected_branch.rb Annotated 2012-10-09 11:14:17 +03:00
snippet.rb Annotated 2012-10-09 11:14:17 +03:00
system_hook.rb Annotated 2012-10-09 11:14:17 +03:00
tree.rb cosmetical cleanup of models 2012-09-27 02:05:53 -07:00
user.rb Annotated 2012-10-09 11:14:17 +03:00
users_project.rb Annotated 2012-10-09 11:14:17 +03:00
web_hook.rb Annotated 2012-10-09 11:14:17 +03:00
wiki.rb Annotated 2012-10-09 11:14:17 +03:00