Sha256: ffc2bc8a1adf8f1acc5b79195f1ba1f826c8da4cf5870524a5f70f9ff7b4cd80

Contents?: true

Size: 197 Bytes

Versions: 8

Compression:

Stored size: 197 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

8 entries across 8 versions & 1 rubygems

Version Path
voluntary-0.1.0 app/models/role.rb
voluntary-0.1.0.rc4 app/models/role.rb
voluntary-0.1.0.rc3 app/models/role.rb
voluntary-0.1.0.rc2 app/models/role.rb
voluntary-0.1.0.rc1 app/models/role.rb
voluntary-0.0.3 app/models/role.rb
voluntary-0.0.2 app/models/role.rb
voluntary-0.0.1 app/models/role.rb