lib/kouba/simple_factory.rb in kouba-0.2.0 vs lib/kouba/simple_factory.rb in kouba-0.2.1

- old
+ new

@@ -17,9 +17,9 @@ inflector.underscore(child.name.split('::').last) == name end end def create(config) - (find(config[@name_key ? @name_key.to_sym : :name])).new(config[:options]) + (find(config[@name_key ? @name_key.to_sym : :name])).new(config[:options] || {}) end end end