Class: Sprockets::NullCompressor

Inherits:
Object
  • Object
show all
Defined in:
lib/sprockets/compressors.rb

Overview

An asset compressor which does nothing.

This compressor simply returns the asset as-is, without any compression whatsoever. It is useful in development mode, when compression isn't needed but using the same asset pipeline as production is desired.

Instance Method Summary collapse

Instance Method Details

#compress(content) ⇒ Object


54
55
56
# File 'lib/sprockets/compressors.rb', line 54

def compress(content)
  content
end