# frozen_string_literal: true module NeetoCommonsBackend module SampleData module Common class AdminService < Common::Base def process! create_admin! end private def create_admin! User.create! \ organization:, email: "oliver@example.com", first_name: "Oliver", last_name: "Smith", active: true, password: app_secrets.default_password, organization_role: organization.roles.find_by(name: "Admin") end end end end end