sheets_extension.rb in radiant-sheets-extension-1.0.0.pre vs sheets_extension.rb in radiant-sheets-extension-1.0.0

- old
+ new

@@ -18,15 +18,10 @@ @@stylesheet_filters ||= [] @@stylesheet_filters += [SassFilter, ScssFilter] @@javascript_filters ||= [] @@javascript_filters << CoffeeFilter - extension_config do |config| - config.gem 'coffee-script', :version => '~> 2.2.0' - config.gem 'sass', :version => '~> 3.1.2' - end - def activate SassFilter ScssFilter CoffeeFilter @@ -74,13 +69,14 @@ end alias_method_chain :render_node, :sheets end SiteController.class_eval do - cattr_writer :sheet_cache_timeout - def self.sheet_cache_timeout - @@sheet_cache_timeout ||= 30.days + @sheet_cache_timeout ||= 30.days + end + def self.sheet_cache_timeout=(val) + @sheet_cache_timeout = val end def set_cache_control_with_sheets if @page.sheet? expires_in self.class.sheet_cache_timeout, :public => true, :private => false