lib/faker_maker/factory.rb in faker_maker-1.1.8 vs lib/faker_maker/factory.rb in faker_maker-1.1.9

- old
+ new

@@ -30,9 +30,10 @@ def instance @instance ||= instantiate end def build( attributes = {} ) + @instance = nil before_build if respond_to? :before_build assert_only_known_attributes_for_override( attributes ) populate_instance instance, attributes yield instance if block_given? after_build if respond_to? :after_build