lib/br_documents/ie/factory.rb in br_documents-0.0.4 vs lib/br_documents/ie/factory.rb in br_documents-0.0.5

- old
+ new

@@ -1,9 +1,9 @@ module BrDocuments module IE class Factory def self.create(uf, number) - klass = BrDocuments::IE.const_get("#{uf}") + klass = IE.const_get("#{uf}") klass.new(number) rescue NameError raise(ArgumentError, I18n.t("validator.ie.uf.invalid")) end end