Skip to content

Commit

Permalink
project-memberships-add-associations-to-model
Browse files Browse the repository at this point in the history
Next, add the associations to the model:

SHOW_PATCH
  • Loading branch information
bryanlarsen authored and iox committed Aug 12, 2013
1 parent a0661cd commit 4a43a86
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/models/project_membership.rb
Expand Up @@ -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?
Expand Down

0 comments on commit 4a43a86

Please sign in to comment.