Class: Papercat::Stylesheet

Inherits:
Document
  • Object
show all
Defined in:
app/models/papercat/stylesheet.rb

Constant Summary collapse

YUI_JAR_FILE =
"#{Papercat::Engine.root}/vendor/yuicompressor-2.4.8.jar"
COMPRESSOR =
YUI::CssCompressor.new({jar_file: YUI_JAR_FILE})

Instance Method Summary collapse

Methods inherited from Document

at, get, #set

Instance Method Details

#as_json(options = {}) ⇒ Object



17
18
19
# File 'app/models/papercat/stylesheet.rb', line 17

def as_json options = {}
  super(options.update(methods: [:pathname, :source], except: [:data]))
end