Sha256: 8568ff5bbdb21c566097a4d6c4c7c7e902784cfc4b6da06940a5efcf3d09e7dc

Contents?: true

Size: 330 Bytes

Versions: 15

Compression:

Stored size: 330 Bytes

Contents

class Factory
  class Attribute #:nodoc:

    class Association < Attribute  #:nodoc:

      def initialize(name, factory, overrides)
        super(name)
        @factory   = factory
        @overrides = overrides
      end

      def add_to(proxy)
        proxy.associate(name, @factory, @overrides)
      end
    end

  end
end

Version data entries

15 entries across 15 versions & 8 rubygems

Version Path
BrettRasmussen-factory_girl-1.2.2 lib/factory_girl/attribute/association.rb
BrettRasmussen-factory_girl-1.2.3 lib/factory_girl/attribute/association.rb
agibralter-factory_girl-1.2.1 lib/factory_girl/attribute/association.rb
lacomartincik-factory_girl-1.2.1.1 lib/factory_girl/attribute/association.rb
masa-iwasaki-factory_girl-1.2.1.1 lib/factory_girl/attribute/association.rb
qrush-factory_girl-1.2.1.1 lib/factory_girl/attribute/association.rb
thoughtbot-factory_girl-1.2.0 lib/factory_girl/attribute/association.rb
thoughtbot-factory_girl-1.2.1 lib/factory_girl/attribute/association.rb
thoughtbot-factory_girl-1.2.2 lib/factory_girl/attribute/association.rb
ttilley-factory_girl-1.2.2.1 lib/factory_girl/attribute/association.rb
ttilley-factory_girl-1.2.2.2 lib/factory_girl/attribute/association.rb
ttilley-factory_girl-1.2.2 lib/factory_girl/attribute/association.rb
factory_girl-1.2.0 lib/factory_girl/attribute/association.rb
factory_girl-1.2.1 lib/factory_girl/attribute/association.rb
factory_girl-1.2.2 lib/factory_girl/attribute/association.rb