lib/rack/less/source.rb in rack-less-1.0.0 vs lib/rack/less/source.rb in rack-less-1.1.0

- old
+ new

@@ -1,6 +1,7 @@ require 'less' +require 'rack/less' module Rack::Less # The engine for compiling LESS CSS # Given the name of the less source file you want @@ -25,10 +26,13 @@ !!@compress end def cache? !@cache.nil? end + def cache + @cache + end # Use named css sources before using combination sources def files @files ||= (css_sources.empty? ? combination_sources : css_sources) end @@ -59,12 +63,12 @@ def css_sources @css_sources ||= preferred_sources([@css_name]) end # Preferred, existing source files matching a corresponding - # Rack::Less::Base combination directive, if any + # Rack::Less::Config combination directive, if any def combination_sources - @combination_sources ||= preferred_sources(Base.combinations[@css_name] || []) + @combination_sources ||= preferred_sources(Rack::Less.config.combinations[@css_name] || []) end private # Given a list of file names, return a list of