lib/sprockets/context.rb in sprockets-2.4.3 vs lib/sprockets/context.rb in sprockets-2.4.4

- old
+ new

@@ -79,10 +79,14 @@ def resolve(path, options = {}, &block) pathname = Pathname.new(path) attributes = environment.attributes_for(pathname) if pathname.absolute? - pathname + if environment.stat(pathname) + pathname + else + raise FileNotFound, "couldn't find file '#{pathname}'" + end elsif content_type = options[:content_type] content_type = self.content_type if content_type == :self if attributes.format_extension