lib/gov_kit/resource.rb in govkit-0.4.0 vs lib/gov_kit/resource.rb in govkit-0.4.1

- old
+ new

@@ -89,10 +89,10 @@ raise NameError, "Namespace for #{namespace} not found" end end def find_or_create_resource_for(name) - resource_name = name.to_s.gsub(/^(\d)/, "n#{$1}").gsub(/\s/, '').camelize + resource_name = name.to_s.gsub(/^[_+]/,'').gsub(/^(\d)/, "n#{$1}").gsub(/\s/, '').camelize if self.class.parents.size > 1 find_resource_in_modules(resource_name, self.class.parents) else self.class.const_get(resource_name) end