Sha256: 6cc27dd320c1d38bc1701c1f163d6d520b4c85cfce58bab65eb558b5a627c2ce
Contents?: true
Size: 601 Bytes
Versions: 1
Compression:
Stored size: 601 Bytes
Contents
# frozen_string_literal: true module HeavyControl module Extensions module IgnoreSubfolders def search_for_file(path_suffix) base_result = super(path_suffix) return base_result if base_result HeavyControl.config[:ignore_subfolders].each do |subfolder| new_path_suffix = File.join File.split(path_suffix).insert(-2, subfolder) result = super(new_path_suffix) return result if result end nil end private def hc_log(msg) Rails.logger.debug "HeavyControl: #{msg}" end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
heavy_control-0.1.1 | lib/heavy_control/extensions/ignore_subfolders.rb |