class ConditionalAssetCompressor < Uglifier
  def initialize(options = { })
    options.merge(comments: :all)
    super(options)
  end

  def compress(string)
    if string =~ /no_asset_compression/
      string
    else
      super(string)
    end
  end
end
