Sha256: 810f35ffb4c02a4c7b43c66ef7263372b495befdd81a9df9800cae5ba3c4a2c6

Contents?: true

Size: 352 Bytes

Versions: 1

Compression:

Stored size: 352 Bytes

Contents

module FactoryGirl
  class Declaration
    class Association < Declaration
      def initialize(name, options)
        super(name)
        @options = options
      end

      private

      def build
        factory_name = @options.delete(:factory) || name
        [Attribute::Association.new(name, factory_name, @options)]
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
factory_girl-2.1.2 lib/factory_girl/declaration/association.rb