lib/fiona7/mode_switch/composite.rb in infopark_fiona7-0.30.0.2 vs lib/fiona7/mode_switch/composite.rb in infopark_fiona7-0.70.0.1
- old
+ new
@@ -1,19 +1,17 @@
require 'fiona7/mode_switch/abstract_mode_switch'
require 'fiona7/mode_switch/views'
require 'fiona7/mode_switch/cms_routes'
-require 'fiona7/mode_switch/constants'
module Fiona7
module ModeSwitch
class Composite < AbstractModeSwitch
def initialize(app)
super
@views = Views.new(self.app)
@cms_routes = CmsRoutes.new(self.app)
- @constants = Constants.new(self.app)
end
def standalone
self.switches.each(&:standalone)
end
@@ -21,13 +19,13 @@
def legacy
self.switches.each(&:legacy)
end
protected
- attr_reader :views, :cms_routes, :constants
+ attr_reader :views, :cms_routes
def switches
- [self.views, self.cms_routes, self.constants]
+ [self.views, self.cms_routes]
end
end
end
end