Sha256: eba07a2a7cb1e3635cd322270104db5838b056b3d8f444035d728845a4eba1be

Contents?: true

Size: 278 Bytes

Versions: 10

Compression:

Stored size: 278 Bytes

Contents

class Role < ActiveRecord::Base
  has_many :users
  has_many :access_control_entries

  def self.collection_entries
    roles = [["Not Set", nil]]
    Role.all.map{|t| [t.name, t.id]}.each do |t|
      roles << t
    end
    roles
  end

  SUPER = 1
  ADMIN = 2
  USER = 3
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
wheels-0.0.31 app/models/role.rb
wheels-0.0.30 app/models/role.rb
wheels-0.0.29 app/models/role.rb
wheels-0.0.28 app/models/role.rb
wheels-0.0.27 app/models/role.rb
wheels-0.0.26 app/models/role.rb
wheels-0.0.25 app/models/role.rb
wheels-0.0.24 app/models/role.rb
wheels-0.0.23 app/models/role.rb
wheels-0.0.22 app/models/role.rb