Sha256: d151dffaf06d98e45bfe2584bcbde6c6018bf200df5f9197fb7b4fbaa2547727
Contents?: true
Size: 348 Bytes
Versions: 3
Compression:
Stored size: 348 Bytes
Contents
class Role < ApplicationRecord has_and_belongs_to_many :users, :join_table => :users_roles belongs_to :resource, :polymorphic => true, :optional => true validates :resource_type, :inclusion => { :in => Rolify.resource_types }, :allow_nil => true scopify validates_uniqueness_of :name end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
keppler-2.0.2 | installer/core/app/models/role.rb |
keppler-2.0.1 | installer/core/app/models/role.rb |
keppler-2.0.0 | installer/core/app/models/role.rb |