Refactor project membership and private repo functionality into generic protected...
authorChristian Johansen <christian@gitorious.org>
Thu, 23 Feb 2012 16:08:55 +0000 (17:08 +0100)
committerChristian Johansen <christian@gitorious.org>
Tue, 28 Feb 2012 12:59:57 +0000 (13:59 +0100)
commit18c4ff48bb2758f27981040e4f137cedb7137e37
tree75df5b3389f04391dffef0eedf8fa9fe71fb98ff
parent2f55d5ca7fa9c4e15da9cfb8144fb09ce8b4a8b6
Refactor project membership and private repo functionality into generic protected content

  - Allows for reuse for repositories
  - Add repository member management
  - Update authorization for repositories
  - DRY controllers and views
20 files changed:
app/controllers/application_controller.rb
app/controllers/content_memberships_controller.rb [new file with mode: 0644]
app/controllers/project_memberships_controller.rb
app/controllers/repository_filters.rb [new file with mode: 0644]
app/controllers/repository_memberships_controller.rb [new file with mode: 0644]
app/helpers/content_memberships_helper.rb [new file with mode: 0644]
app/models/committership_authorization.rb
app/models/repository.rb
app/models/repository_membership.rb [new file with mode: 0644]
app/views/content_memberships/_content_membership.html.erb
app/views/content_memberships/_form.html.erb [new file with mode: 0644]
app/views/content_memberships/_memberships.html.erb [new file with mode: 0644]
app/views/content_memberships/index.html.erb [new file with mode: 0644]
config/locales/en.rb
config/routes.rb
lib/breadcrumb.rb
test/functional/project_memberships_controller_test.rb
test/functional/repository_memberships_controller_test.rb [new file with mode: 0644]
test/test_helper.rb
test/unit/repository_test.rb