lib/nitro/dispatcher.rb in nitro-0.21.2 vs lib/nitro/dispatcher.rb in nitro-0.22.0

- old
+ new

@@ -11,11 +11,11 @@ class Dispatcher include Router # The dispatcher specialization used. - + setting :mode, :default => :nice, :doc => 'The dispatcher specialization used' unless const_defined? :ROOT ROOT = '/' end @@ -84,10 +84,10 @@ unless (c.ancestors.include?(Controller) or c.ancestors.include?(Publishable)) c.send :include, Publishable end auto_mixin(c) - + # Try to setup a template_root if none is defined: unless c.template_root c.template_root = "#{Template.root}#{path}".gsub(/\/$/, '') end