Remove class Spree::Role

This commit is contained in:
Maikel Linke
2025-01-22 14:45:19 +11:00
parent d49cea5e3d
commit ea9a5c8dd5

View File

@@ -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