class FactoryBot::Attribute::Association
@api private
def association?
def association? true end
def initialize(name, factory, overrides)
def initialize(name, factory, overrides) super(name, false) @factory = factory @overrides = overrides end
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