Refactor project memberships to content memberships
authorChristian Johansen <christian@gitorious.org>
Thu, 23 Feb 2012 11:39:51 +0000 (12:39 +0100)
committerChristian Johansen <christian@gitorious.org>
Tue, 28 Feb 2012 12:59:20 +0000 (13:59 +0100)
commit671ec1873c76b28b183ad38165c6139f5835f32a
treee76852ec3d1a645d94267e3091ad3cd5e01037e2
parent3567cdcf9d458f69f4f6de9fd1532c3359a1b254
Refactor project memberships to content memberships

  - Reusable for repositories
15 files changed:
app/controllers/project_memberships_controller.rb
app/models/committership_authorization.rb
app/models/content_membership.rb [new file with mode: 0644]
app/models/group.rb
app/models/project.rb
app/models/project_membership.rb
app/models/user.rb
app/views/content_memberships/_content_membership.html.erb [new file with mode: 0644]
app/views/project_memberships/_project_membership.html.erb [deleted file]
db/migrate/20120223093906_make_project_membership_polymorphic_on_subject.rb [new file with mode: 0644]
db/schema.rb
lib/gitorious/protectable.rb [new file with mode: 0644]
test/functional/project_memberships_controller_test.rb
test/functional/projects_controller_test.rb
test/unit/project_test.rb