Sha256: c7d90dd8a1f23dbe7abd6cc8dc78532c816413f969dba3cfdd28ba1b03d12e3c

Contents?: true

Size: 228 Bytes

Versions: 4

Compression:

Stored size: 228 Bytes

Contents

module Spree
  class Role < Spree::Base
    include UniqueName

    has_many :role_users, class_name: 'Spree::RoleUser', dependent: :destroy
    has_many :users, through: :role_users, class_name: Spree.user_class.to_s
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
spree_core-4.4.1 app/models/spree/role.rb
spree_core-4.4.0 app/models/spree/role.rb
spree_core-4.4.0.rc2 app/models/spree/role.rb
spree_core-4.4.0.rc1 app/models/spree/role.rb