Permalink
Browse files

project-memberships-add-associations-to-model

Next, add the associations to the model:

SHOW_PATCH
  • Loading branch information...
bryanlarsen authored and iox committed Jun 3, 2013
1 parent a0661cd commit 4a43a86ee8a16bb57d12e6c602b89e6f87e78c19
Showing with 3 additions and 0 deletions.
  1. +3 −0 app/models/project_membership.rb
@@ -7,6 +7,9 @@ class ProjectMembership < ActiveRecord::Base
end
attr_accessible
belongs_to :project, :inverse_of => :memberships
belongs_to :user, :inverse_of => :project_memberships
# --- Permissions --- #
def create_permitted?

0 comments on commit 4a43a86

Please sign in to comment.