Sha256: bf2317f3395f35d51527b81f2eb7fff0a586248e7efdcf4033bc9a457c2b066d

Contents?: true

Size: 359 Bytes

Versions: 1

Compression:

Stored size: 359 Bytes

Contents

module FactoryGirl
  class Declaration
    class Association < Declaration
      def initialize(name, options)
        super(name, false)
        @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.2.0 lib/factory_girl/declaration/association.rb