Sha256: 6f6afad71596984d90f2dcb238ced80bbabb71a1a03663e74a80bce573ff1b6d

Contents?: true

Size: 410 Bytes

Versions: 13

Compression:

Stored size: 410 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

13 entries across 13 versions & 2 rubygems

Version Path
factory_girl-2.0.4 lib/factory_girl/attribute/association.rb
factory_girl-2.0.3 lib/factory_girl/attribute/association.rb
factory_girl-2.0.2 lib/factory_girl/attribute/association.rb
factory_girl-2.0.1 lib/factory_girl/attribute/association.rb
factory_girl-2.0.0.rc4 lib/factory_girl/attribute/association.rb
factory_girl-2.0.0.rc3 lib/factory_girl/attribute/association.rb
factory_girl-2.0.0.rc2 lib/factory_girl/attribute/association.rb
factory_girl-2.0.0.rc1 lib/factory_girl/attribute/association.rb
factory_girl-2.0.0.beta5 lib/factory_girl/attribute/association.rb
factory_girl-2.0.0.beta4 lib/factory_girl/attribute/association.rb
factory_girl-2.0.0.beta3 lib/factory_girl/attribute/association.rb
factory_girl_kibiz0r-2.0.0.beta3 lib/factory_girl/attribute/association.rb
factory_girl_kibiz0r-2.0.0.beta2 lib/factory_girl/attribute/association.rb