Sha256: cd00671453c959106cc9e67822323a11748b2dbcc4a64524d02d6a3190378a8a
Contents?: true
Size: 374 Bytes
Versions: 3
Compression:
Stored size: 374 Bytes
Contents
# frozen_string_literal: true module Spree class PermissionSet < Spree::Base has_many :role_permissions has_many :roles, through: :role_permissions validates :name, :set, :privilege, :category, presence: true scope :display_permissions, -> { where(privilege: "display") } scope :management_permissions, -> { where(privilege: "management") } end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
solidus_core-4.4.2 | app/models/spree/permission_set.rb |
solidus_core-4.4.1 | app/models/spree/permission_set.rb |
solidus_core-4.4.0 | app/models/spree/permission_set.rb |