1
0
Fork 0
This repository has been archived on 2023-03-27. You can view files and clone it, but cannot push or open issues or pull requests.
lpr-partynest/factories/regional_offices.rb

13 lines
276 B
Ruby

# frozen_string_literal: true
FactoryBot.define do
factory :regional_office do
initialize_with do
RegionalOffice.find_or_initialize_by federal_subject: federal_subject
end
association :federal_subject
name { federal_subject&.native_name }
end
end