Sha256: b42c1aecb640adda67af488f35b168a8f116cbb225a0562db62e63253207ebeb
Contents?: true
Size: 407 Bytes
Versions: 3
Compression:
Stored size: 407 Bytes
Contents
module FactoryGirl class Attribute #:nodoc: class Association < Attribute #:nodoc: attr_reader :factory def initialize(name, factory, overrides) super(name) @factory = factory @overrides = overrides end def add_to(proxy) proxy.associate(name, @factory, @overrides) end def association? true end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
factory_girl-2.1.2 | lib/factory_girl/attribute/association.rb |
factory_girl-2.1.0 | lib/factory_girl/attribute/association.rb |
factory_girl-2.0.5 | lib/factory_girl/attribute/association.rb |