Skip to content

Instantly share code, notes, and snippets.

@patmaddox
Created March 14, 2012 21:32
Show Gist options
  • Select an option

  • Save patmaddox/2039676 to your computer and use it in GitHub Desktop.

Select an option

Save patmaddox/2039676 to your computer and use it in GitHub Desktop.
class RoleUser < Refinery::Core::BaseModel
belongs_to :role
belongs_to :user
end
class User < Refinery::Core::BaseModel
has_many :role_users
has_many :roles, :through => :role_users
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment