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