Class: AssetFinder::Javascript::Finder
- Inherits:
-
Object
- Object
- AssetFinder::Javascript::Finder
- Defined in:
- lib/asset_finder/javascript/finder.rb
Class Method Summary collapse
Class Method Details
.execute ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/asset_finder/javascript/finder.rb', line 6 def self.execute [].tap do |paths| root_dir = File.join(Rails.root, 'app/assets/javascripts/') normalizer = Normalizer.new( root_dir, AssetFinder.configuration.javascript_patterns, normalize_index_file: AssetFinder.configuration.normalize_index_file ) Find.find(root_dir).each do |path| normalized_path = normalizer.normalize(path) next if normalized_path.nil? paths << normalized_path end end end |