Bring user and ability related files from spree_core

This commit is contained in:
Luis Ramos
2020-08-19 04:29:49 +01:00
parent b4759ff869
commit dfa00a770a
2 changed files with 30 additions and 0 deletions

5
app/models/spree/role.rb Normal file
View File

@@ -0,0 +1,5 @@
module Spree
class Role < ActiveRecord::Base
has_and_belongs_to_many :users, join_table: 'spree_roles_users', class_name: Spree.user_class.to_s
end
end