class Sprockets::Base

def find_asset(path, options = {})

Find asset by logical path or expanded path.
def find_asset(path, options = {})
  logical_path = path
  pathname     = Pathname.new(path)
  if pathname.absolute?
    return unless stat(pathname)
    logical_path = attributes_for(pathname).logical_path
  else
    begin
      pathname = resolve(logical_path)
    rescue FileNotFound
      return nil
    end
  end
  build_asset(logical_path, pathname, options)
end