class Sprockets::Context
def asset_requirable?(path)
Tests if target path is able to be safely required into the
def asset_requirable?(path) pathname = resolve(path) content_type = environment.content_type_of(pathname) stat = environment.stat(path) return false unless stat && stat.file? self.content_type.nil? || self.content_type == content_type end