lib/action_view/template/resolver.rb in actionpack-3.0.0.beta4 vs lib/action_view/template/resolver.rb in actionpack-3.0.0.rc

- old
+ new

@@ -1,10 +1,11 @@ require "pathname" require "active_support/core_ext/class" require "action_view/template" module ActionView + # = Action View Resolver class Resolver def initialize @cached = Hash.new { |h1,k1| h1[k1] = Hash.new { |h2,k2| h2[k2] = Hash.new { |h3, k3| h3[k3] = {} } } } end @@ -96,10 +97,10 @@ class FileSystemResolver < PathResolver def initialize(path) raise ArgumentError, "path already is a Resolver class" if path.is_a?(Resolver) super() - @path = Pathname.new(path).expand_path + @path = File.expand_path(path) end def eql?(resolver) self.class.equal?(resolver.class) && to_path == resolver.to_path end