Sha256: c0a4ad5981b52c4e64a07ddb288db0bde63d80b07ea84a2c64fc1c821a9dbdc0

Contents?: true

Size: 424 Bytes

Versions: 168

Compression:

Stored size: 424 Bytes

Contents

module FactoryGirl
  module Strategy
    class Create
      def association(runner)
        runner.run
      end

      def result(evaluation)
        evaluation.object.tap do |instance|
          evaluation.notify(:after_build, instance)
          evaluation.notify(:before_create, instance)
          evaluation.create(instance)
          evaluation.notify(:after_create, instance)
        end
      end
    end
  end
end

Version data entries

168 entries across 104 versions & 13 rubygems

Version Path
ffactory_girl-4.8.2 lib/factory_girl/strategy/create.rb
factory_girl-4.9.0 lib/factory_girl/strategy/create.rb
ffactory_girl-4.8.1 lib/factory_girl/strategy/create.rb
factory_girl-4.8.1 lib/factory_girl/strategy/create.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/factory_girl-4.8.0/lib/factory_girl/strategy/create.rb
factory_girl-4.8.0 lib/factory_girl/strategy/create.rb
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/factory_girl-4.7.0/lib/factory_girl/strategy/create.rb
factory_girl-4.7.0 lib/factory_girl/strategy/create.rb
opal-factory_girl-4.5.0.3 factory_girl/lib/factory_girl/strategy/create.rb
sc_core-0.0.7 test/dummy/vendor/bundle/ruby/2.2.0/gems/factory_girl-4.5.0/lib/factory_girl/strategy/create.rb
classiccms-0.7.5 vendor/bundle/gems/factory_girl-3.2.0/lib/factory_girl/strategy/create.rb
classiccms-0.7.5 vendor/bundle/gems/factory_girl-3.3.0/lib/factory_girl/strategy/create.rb
classiccms-0.7.4 vendor/bundle/gems/factory_girl-3.2.0/lib/factory_girl/strategy/create.rb
classiccms-0.7.4 vendor/bundle/gems/factory_girl-3.3.0/lib/factory_girl/strategy/create.rb
classiccms-0.7.3 vendor/bundle/gems/factory_girl-3.2.0/lib/factory_girl/strategy/create.rb
classiccms-0.7.3 vendor/bundle/gems/factory_girl-3.3.0/lib/factory_girl/strategy/create.rb
solidus_backend-1.0.0.pre3 vendor/bundle/gems/factory_girl-4.5.0/lib/factory_girl/strategy/create.rb
solidus_backend-1.0.0.pre2 vendor/bundle/gems/factory_girl-4.5.0/lib/factory_girl/strategy/create.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/factory_girl-4.5.0/lib/factory_girl/strategy/create.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/apl-library-0.0.90/vendor/bundle/ruby/1.9.1/gems/factory_girl-4.4.0/lib/factory_girl/strategy/create.rb