Sha256: 03263cc44deb522fc3839618db27168700fd565deeb6aa79087d01b65c965c5e
Contents?: true
Size: 276 Bytes
Versions: 32
Compression:
Stored size: 276 Bytes
Contents
module Spree class Role < Spree::Base has_many :role_users, class_name: 'Spree::RoleUser', dependent: :destroy has_many :users, through: :role_users, class_name: Spree.user_class.to_s validates :name, presence: true, uniqueness: { allow_blank: true } end end
Version data entries
32 entries across 32 versions & 1 rubygems