class FactoryBot::Attribute::Association

def to_proc

def to_proc
  factory = @factory
  overrides = @overrides
  traits_and_overrides = [factory, overrides].flatten
  factory_name = traits_and_overrides.shift
  -> { association(factory_name, *traits_and_overrides) }
end