gitlabhq/app/controllers
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
..
admin Revert "Do not allow removal of a project owner user." 2012-10-08 15:57:30 +03:00
admin_controller.rb Add an AdminController base class for Admin controllers 2012-09-16 10:06:29 -04:00
application_controller.rb Separate observing of Note and MergeRequests 2012-10-10 17:59:25 -04:00
blame_controller.rb rename ProjectController to ProjectResourceController 2012-09-27 20:59:42 +02:00
blob_controller.rb rename ProjectController to ProjectResourceController 2012-09-27 20:59:42 +02:00
commit_controller.rb Context refactoring. Move Issues list, Search logic to context 2012-10-09 22:09:46 +03:00
commits_controller.rb rename ProjectController to ProjectResourceController 2012-09-27 20:59:42 +02:00
compare_controller.rb rename ProjectController to ProjectResourceController 2012-09-27 20:59:42 +02:00
dashboard_controller.rb Context refactoring. Move Issues list, Search logic to context 2012-10-09 22:09:46 +03:00
deploy_keys_controller.rb rename ProjectController to ProjectResourceController 2012-09-27 20:59:42 +02:00
errors_controller.rb layout selected by controller name 2012-09-26 22:27:44 +02:00
groups_controller.rb Context refactoring. Move Issues list, Search logic to context 2012-10-09 22:09:46 +03:00
help_controller.rb UI: add new button, top panel restyle etc 2012-01-18 22:15:45 +02:00
hooks_controller.rb rename ProjectController to ProjectResourceController 2012-09-27 20:59:42 +02:00
issues_controller.rb Context refactoring. Move Issues list, Search logic to context 2012-10-09 22:09:46 +03:00
keys_controller.rb Fully embrace Ruby 1.9 hash syntax 2012-08-10 18:25:15 -04:00
labels_controller.rb project.issues_labels method 2012-10-09 20:39:06 +03:00
merge_requests_controller.rb Context refactoring. Move Issues list, Search logic to context 2012-10-09 22:09:46 +03:00
milestones_controller.rb Context refactoring. Move Issues list, Search logic to context 2012-10-09 22:09:46 +03:00
notes_controller.rb Make notes for merge requests include commit notes and add helpers 2012-10-10 12:06:30 +02:00
omniauth_callbacks_controller.rb Cleanup after omniauth 2012-09-12 08:23:20 +03:00
profile_controller.rb layout selected by controller name 2012-09-26 22:27:44 +02:00
project_resource_controller.rb rename ProjectController to ProjectResourceController 2012-09-27 20:59:42 +02:00
projects_controller.rb rename ProjectController to ProjectResourceController 2012-09-27 20:59:42 +02:00
protected_branches_controller.rb rename ProjectController to ProjectResourceController 2012-09-27 20:59:42 +02:00
refs_controller.rb Remove unused history_path instance variable 2012-10-09 18:39:03 -04:00
repositories_controller.rb rename ProjectController to ProjectResourceController 2012-09-27 20:59:42 +02:00
search_controller.rb Context refactoring. Move Issues list, Search logic to context 2012-10-09 22:09:46 +03:00
snippets_controller.rb rename ProjectController to ProjectResourceController 2012-09-27 20:59:42 +02:00
team_members_controller.rb rename ProjectController to ProjectResourceController 2012-09-27 20:59:42 +02:00
tree_controller.rb Remove unused history_path instance variable 2012-10-09 18:39:03 -04:00
wikis_controller.rb rename ProjectController to ProjectResourceController 2012-09-27 20:59:42 +02:00