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