Sha256: 7d0470709f458c76c90f59577ddae15702d87a28d4829df86abd910d31c96c1d
Contents?: true
Size: 641 Bytes
Versions: 28
Compression:
Stored size: 641 Bytes
Contents
module FactoryGirl class DefinitionHierarchy def callbacks [] end def constructor FactoryGirl.constructor end def to_create FactoryGirl.to_create end def self.add_callbacks(callbacks) if callbacks.any? define_method :callbacks do super() + callbacks end end end def self.build_constructor(&block) if block define_method(:constructor) do block end end end def self.build_to_create(&block) if block define_method(:to_create) do block end end end end end
Version data entries
28 entries across 20 versions & 4 rubygems