Sha256: 30f9e13b246e444b89a99d49dfc2abd9221c00fa54ebbc8176162e4f9b30eb6f
Contents?: true
Size: 210 Bytes
Versions: 7
Compression:
Stored size: 210 Bytes
Contents
class Role < ActiveRecord::Base belongs_to :user validates_presence_of :user, :role def self.roles return { t(".administrator") => "admin", t(".moderator") => "moderator" } end end
Version data entries
7 entries across 7 versions & 1 rubygems