generators/prerequisites/templates/factory_bot.rb in howitzer-2.1.1 vs generators/prerequisites/templates/factory_bot.rb in howitzer-2.2.0

- old
+ new

@@ -13,9 +13,10 @@ # @param num [Integer] a factory number # @return [Object] the factory def self.given_by_number(factory, num) data = Howitzer::Cache.extract(factory, num.to_i) return data if data.present? + Howitzer::Cache.store(factory, num.to_i, build(factory)) end end # This module holds data generators