mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Remove class Spree::Role
This commit is contained in:
@@ -1,13 +0,0 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Spree
|
||||
class Role < ApplicationRecord
|
||||
has_and_belongs_to_many :users, join_table: 'spree_roles_users',
|
||||
class_name: "Spree::User"
|
||||
|
||||
# The only role we have at the moment:
|
||||
def self.admin
|
||||
Spree::Role.find_or_create_by(name: 'admin')
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user