Sha256: d508c6dbfc081a554ee5f05c77bd43ab20b0a69721508bf6e5c8030de4dcf5d9
Contents?: true
Size: 674 Bytes
Versions: 5
Compression:
Stored size: 674 Bytes
Contents
# encoding: utf-8 # Load the rails application require_relative 'application' # Initialize the rails application Rails.application.initialize! # fix for bootstrap-sass that uses depricated Regexp indices = [] strings = [] precompile = Rails.application.config.assets.precompile precompile.each_with_index do |string_or_regexp, index| if string_or_regexp.is_a? Regexp indices << index match = string_or_regexp.source.match /(.*)\\\.\(\?:(.*?)\??\)\$$/ match[2].split('|').each do |ext| strings << "#{match[1]}.#{ext}" end end end indices.reverse.each do |index| precompile.delete_at index end strings.each do |string| precompile << string end
Version data entries
5 entries across 5 versions & 1 rubygems