Sha256: 39f73a5d80b1dbe4168630138fd5b1db6714cb64869336a1b57318c0c123403e
Contents?: true
Size: 291 Bytes
Versions: 14
Compression:
Stored size: 291 Bytes
Contents
# frozen_string_literal: true module Spree class RoleUser < Spree::Base self.table_name = "spree_roles_users" belongs_to :role, class_name: "Spree::Role" belongs_to :user, class_name: Spree::UserClassHandle.new validates_uniqueness_of :role_id, scope: :user_id end end
Version data entries
14 entries across 14 versions & 1 rubygems