lib/fiona7/engine.rb in infopark_fiona7-1.5.5.3.1 vs lib/fiona7/engine.rb in infopark_fiona7-1.5.5.4.0

- old
+ new

@@ -126,10 +126,14 @@ Rails.logger.error(e.backtrace[0,30].join("\n")) end end end + def self.widget_gc_strategy + self.read_config.features.widget_gc_strategy + end + def self.workflows_enabled? !!self.read_config.features.workflows_enabled end def self.facetting_enabled? @@ -141,11 +145,11 @@ super self.features = Features.new unless self.features end end - class Features < Struct.new("Features", :workflows_enabled, :facetting_enabled) - def initialize(workflows_enabled=true, facetting_enabled=true) + class Features < Struct.new("Features", :workflows_enabled, :facetting_enabled, :widget_gc_strategy) + def initialize(workflows_enabled=true, facetting_enabled=true, widget_gc_strategy=nil) super end end mattr_accessor :config