Sha256: 5049ca924f6239b14b11184e187fcd7da5861d7d394d778b9ffc12819c02843c

Contents?: true

Size: 652 Bytes

Versions: 12

Compression:

Stored size: 652 Bytes

Contents

# 3rd-party
require "sprockets"


module Jekyll
  module AssetsPlugin
    module Patches
      module IndexPatch

        def self.included base
          base.class_eval do
            alias_method :find_asset_without_jekyll, :find_asset
            alias_method :find_asset, :find_asset_with_jekyll
          end
        end


        def find_asset_with_jekyll path, options = {}
          asset = find_asset_without_jekyll path, options
          @environment.site.bundle_asset! asset if asset and options[:bundle]
          asset
        end

      end
    end
  end
end


Sprockets::Index.send :include, Jekyll::AssetsPlugin::Patches::IndexPatch

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
jekyll-assets-0.4.3 lib/jekyll/assets_plugin/patches/index_patch.rb
jekyll-assets-0.5.4 lib/jekyll/assets_plugin/patches/index_patch.rb
jekyll-assets-0.5.3 lib/jekyll/assets_plugin/patches/index_patch.rb
jekyll-assets-0.5.2 lib/jekyll/assets_plugin/patches/index_patch.rb
jekyll-assets-0.5.1 lib/jekyll/assets_plugin/patches/index_patch.rb
jekyll-assets-0.5.0 lib/jekyll/assets_plugin/patches/index_patch.rb
jekyll-assets-0.4.2 lib/jekyll/assets_plugin/patches/index_patch.rb
jekyll-assets-0.4.1 lib/jekyll/assets_plugin/patches/index_patch.rb
jekyll-assets-0.4.0 lib/jekyll/assets_plugin/patches/index_patch.rb
jekyll-assets-0.3.8 lib/jekyll/assets_plugin/patches/index_patch.rb
jekyll-assets-0.3.7 lib/jekyll/assets_plugin/patches/index_patch.rb
jekyll-assets-0.3.6 lib/jekyll/assets_plugin/patches/index_patch.rb