Sha256: f1961fad4a47904ee26f0e0735e35e45e25c1e5d04cec1be95168f63a786ee24

Contents?: true

Size: 331 Bytes

Versions: 16

Compression:

Stored size: 331 Bytes

Contents

module FactoryGirl
  class Proxy #:nodoc:
    class Create < Build #:nodoc:
      def result(to_create)
        run_callbacks(:after_build)
        if to_create
          to_create.call(@instance)
        else
          @instance.save!
        end
        run_callbacks(:after_create)
        @instance
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
factory_girl-2.3.0 lib/factory_girl/proxy/create.rb
factory_girl-2.0.5 lib/factory_girl/proxy/create.rb
factory_girl-2.0.4 lib/factory_girl/proxy/create.rb
factory_girl-2.0.3 lib/factory_girl/proxy/create.rb
factory_girl-2.0.2 lib/factory_girl/proxy/create.rb
factory_girl-2.0.1 lib/factory_girl/proxy/create.rb
factory_girl-2.0.0.rc4 lib/factory_girl/proxy/create.rb
factory_girl-2.0.0.rc3 lib/factory_girl/proxy/create.rb
factory_girl-2.0.0.rc2 lib/factory_girl/proxy/create.rb
factory_girl-2.0.0.rc1 lib/factory_girl/proxy/create.rb
factory_girl-2.0.0.beta5 lib/factory_girl/proxy/create.rb
factory_girl-2.0.0.beta4 lib/factory_girl/proxy/create.rb
factory_girl-2.0.0.beta3 lib/factory_girl/proxy/create.rb
factory_girl_kibiz0r-2.0.0.beta3 lib/factory_girl/proxy/create.rb
factory_girl_kibiz0r-2.0.0.beta2 lib/factory_girl/proxy/create.rb
factory_girl-2.0.0.beta2 lib/factory_girl/proxy/create.rb