Sha256: 2f1344940bceb7ee0d08d1c4a6eb19e95b86421e731ee15d63c012550b12d367

Contents?: true

Size: 343 Bytes

Versions: 71

Compression:

Stored size: 343 Bytes

Contents

module FactoryGirl
  class Strategy #:nodoc:
    class Build < Strategy #:nodoc:
      def association(runner)
        runner.run
      end

      def result(attribute_assigner, to_create)
        attribute_assigner.object.tap do |result_instance|
          run_callbacks(:after_build, result_instance)
        end
      end
    end
  end
end

Version data entries

71 entries across 67 versions & 5 rubygems

Version Path
classiccms-0.5.14 vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/strategy/build.rb
classiccms-0.5.13 vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/strategy/build.rb
classiccms-0.5.12 vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/strategy/build.rb
classiccms-0.5.11 vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/strategy/build.rb
classiccms-0.5.10 vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/strategy/build.rb
classiccms-0.5.9 vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/strategy/build.rb
classiccms-0.5.8 vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/strategy/build.rb
classiccms-0.5.7 vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/strategy/build.rb
classiccms-0.5.6 vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/strategy/build.rb
classiccms-0.5.5 vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/strategy/build.rb
classiccms-0.5.2 vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/strategy/build.rb
classiccms-0.5.1 vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/strategy/build.rb
classiccms-0.5.0 vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/strategy/build.rb
classiccms-0.4.2 vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/strategy/build.rb
classiccms-0.4.1 vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/strategy/build.rb
classiccms-0.4.0 vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/strategy/build.rb
classiccms-0.3.9 vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/strategy/build.rb
challah-0.6.2 vendor/bundle/gems/factory_girl-2.6.1/lib/factory_girl/strategy/build.rb
classiccms-0.3.8 vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/strategy/build.rb
challah-0.6.1 vendor/bundle/gems/factory_girl-2.6.1/lib/factory_girl/strategy/build.rb