lib/sprockets/base.rb in sprockets-2.1.0 vs lib/sprockets/base.rb in sprockets-2.1.1

- old
+ new

@@ -147,10 +147,10 @@ # Find asset by logical path or expanded path. def find_asset(path, options = {}) logical_path = path pathname = Pathname.new(path) - if pathname.to_s =~ /^\// + if pathname.absolute? return unless stat(pathname) logical_path = attributes_for(pathname).logical_path else begin pathname = resolve(logical_path)