lib/jpmobile/path_set.rb in jpmobile-5.1.1 vs lib/jpmobile/path_set.rb in jpmobile-5.2.0

- old
+ new

@@ -10,10 +10,11 @@ end def find(path, prefix = nil, partial = false, details = {}, key = nil) template = find_all(path, prefix, partial, details, key).first raise MissingTemplate.new(self, "#{prefix}/#{path}", details, partial) unless template + template end def find_all(*args) each do |resolver| @@ -31,9 +32,10 @@ def typecast! each_with_index do |path, i| path = path.to_s if path.is_a?(Pathname) next unless path.is_a?(String) + self[i] = Jpmobile::Resolver.new(path) end end end end