Sha256: 73a3643d898a8cc5f04573c1100c75382cedee108468ce247916e93dd847e6dd

Contents?: true

Size: 457 Bytes

Versions: 2

Compression:

Stored size: 457 Bytes

Contents

require 'sprockets'

module Sprockets
  class Plugin
    module Aware
      # Appends the paths from each Sprockets::Plugin
      # to the Sprockets::Environment.
      def append_plugin_paths
        Plugin.plugins.each do |plugin|
          plugin.paths.each do |path|
            self.append_path(path) unless self.paths.include?(path)
          end
        end
      end
    end
  end
end

Sprockets::Environment.send :include, Sprockets::Plugin::Aware

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sprockets-plugin-0.3.0 lib/sprockets/plugin/aware.rb
sprockets-plugin-0.2.1 lib/sprockets/plugin/aware.rb