lib/rack/less.rb in rack-less-1.3.1 vs lib/rack/less.rb in rack-less-1.4.0

- old
+ new

@@ -41,15 +41,26 @@ # Combinations config convenience method def combinations(key=nil) @@config.combinations(key) end + + # Stylesheet helper, config convenience method + def stylesheet(key) + @@config.stylesheet(key) + end - # Combination timestamp config convenience method - def combination_timestamp - @@config.combination_timestamp + # Cache bust config convenience method + def cache_bust + @@config.cache_bust end + # <b>DEPRECATED:</b> Please use <tt>cache_bust</tt> instead. + def combination_timestamp + warn "[DEPRECATION] `combination_timestamp` is deprecated. Please use `cache_bust` instead." + cache_bust + end + end # Create a new Rack::Less middleware component # => the +options+ Hash can be used to specify default configuration values # => (see Rack::Less::Options for possible key/values)