Sha256: a23ed998f300b5825854a7367c1b1a99ebaafd7789c3dd5fd40c57ce64e7b292

Contents?: true

Size: 330 Bytes

Versions: 2

Compression:

Stored size: 330 Bytes

Contents

require 'sprockets'

class Rafters::DirectiveProcessor < Sprockets::DirectiveProcessor
  def process_require_components_directive
    Rafters.asset_paths.sort.each do |asset_path|
      each_entry(asset_path) do |pathname|
        context.require_asset(pathname) if context.asset_requirable?(pathname)
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rafters-0.1.2 lib/rafters/directive_processor.rb
rafters-0.1.1 lib/rafters/directive_processor.rb