Sha256: 6983136449fcc8e1574ab3761444698c1f6b3e423b90d84d126a3130aee93264
Contents?: true
Size: 317 Bytes
Versions: 2
Compression:
Stored size: 317 Bytes
Contents
# frozen_string_literal: true module G5Authenticatable # A user role (e.g. admin, viewer), optionally scoped to a client or location class Role < ActiveRecord::Base has_and_belongs_to_many :users, join_table: :g5_authenticatable_users_roles belongs_to :resource, polymorphic: true scopify end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
g5_authenticatable-1.0.0.pre.2 | app/models/g5_authenticatable/role.rb |
g5_authenticatable-1.0.0.pre.1 | app/models/g5_authenticatable/role.rb |