Sha256: 788c5da9efbad35d34688ba54dfcd86f52583a4a6e7f35f871124428ff718879

Contents?: true

Size: 358 Bytes

Versions: 6

Compression:

Stored size: 358 Bytes

Contents

require 'sprockets'

module Rafters
  class 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
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rafters-1.2.1 lib/rafters/sprockets/directive_processor.rb
rafters-1.2.0 lib/rafters/directive_processor.rb
rafters-1.1.0 lib/rafters/directive_processor.rb
rafters-1.0.0 lib/rafters/directive_processor.rb
rafters-0.2.0 lib/rafters/directive_processor.rb
rafters-0.1.3 lib/rafters/directive_processor.rb