Exclude closed merged requests in favorites
authorAdam Pohorecki <adam@pohorecki.pl>
Tue, 22 Oct 2013 12:44:42 +0000 (14:44 +0200)
committerAdam Pohorecki <adam@pohorecki.pl>
Tue, 22 Oct 2013 12:44:42 +0000 (14:44 +0200)
commit8584d1603eb1d418faece2c380310fc24c31b415
tree641351842978c3ca1c545d357a389eda499b2069
parente87ea4a3d5e65370c37b6c67f2537de93b26bfb3
Exclude closed merged requests in favorites

This commit extracts AuthorizedFilter to authorize current_user's
resources. Dashboard and DashboardPresenter were extracted from
SiteController.
app/controllers/application_controller.rb
app/controllers/site_controller.rb
app/models/dashboard.rb [new file with mode: 0644]
app/models/merge_request.rb
app/presenters/dashboard_presenter.rb [new file with mode: 0644]
lib/gitorious/authorized_filter.rb [new file with mode: 0644]
lib/watchable.rb
test/functional/site_controller_test.rb
test/test_helper.rb
test/unit/dashboard_test.rb [new file with mode: 0644]
test/unit/presenters/dashboard_presenter_test.rb [new file with mode: 0644]