Sha256: 8f234410978298ca88623ef7b21c8772cab74b8854ecb69061bda57e175c22f0

Contents?: true

Size: 204 Bytes

Versions: 5

Compression:

Stored size: 204 Bytes

Contents

class Role < ActiveRecord::Base
  has_many :users, through: :user_roles
  has_many :projects, through: :project_users
  
  scope :public, -> { where(public: true) }
  
  attr_accessible :name, :public
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
voluntary-0.2.4 app/models/role.rb
voluntary-0.2.3 app/models/role.rb
voluntary-0.2.2 app/models/role.rb
voluntary-0.2.1 app/models/role.rb
voluntary-0.2.0 app/models/role.rb