mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-27 21:06:49 +00:00
This construct was previously used in Spree to switch out the user class with a dummy class during certain tests. We don't use this any more, so it's just mess.
🔥
9 lines
218 B
Ruby
9 lines
218 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Spree
|
|
class Role < ApplicationRecord
|
|
has_and_belongs_to_many :users, join_table: 'spree_roles_users',
|
|
class_name: "Spree::User"
|
|
end
|
|
end
|