lib/artisans/cached_environment.rb
# Overrides resolver for sprockets 4.0 to reuse path_matches
Overrides resolver for sprockets 4.0 to reuse path_matches
Overrides resolver for sprockets 4 . 0 to reuse path_matches
def resolve_alts_under_path(load_path, logical_name, mime_exts)
      logical_basename = File.basename(logical_name)
      candidates,deps = path_matches(load_path, logical_name, logical_basename) if method(:path_matches).super_method
      if candidates.present?
        c = candidates.first
        return [{ filename: c[0], type: c[1] }], deps
      end
      super
    end
def resolve_alts_under_path ( load_path , logical_name , mime_exts ) logical_basename = File . basename ( logical_name ) candidates , deps = path_matches ( load_path , logical_name , logical_basename ) if method ( :path_matches ) . super_method if candidates . present? c = candidates . first return [ { filename : c [ 0 ] , type : c [ 1 ] } ] , deps end super end
Overrides resolver for sprockets 4.0 to reuse path_matches
Overrides resolver for sprockets 4 . 0 to reuse path_matches
load_path
<not_specific>
logical_name
<not_specific>
mime_exts
<not_specific>