lib/lotus/application.rb in lotusrb-0.3.2 vs lib/lotus/application.rb in lotusrb-0.4.0

- old
+ new

@@ -1,9 +1,10 @@ require 'lotus/utils/class_attribute' require 'lotus/frameworks' require 'lotus/configuration' require 'lotus/loader' +require 'lotus/logger' require 'lotus/rendering_policy' require 'lotus/middleware' module Lotus # A full stack Lotus application @@ -103,10 +104,11 @@ # Initialize and load a new instance of the application # # @return [Lotus::Application] a new instance of the application # # @since 0.1.0 - def initialize + def initialize(options = {}) + self.class.configuration.path_prefix options[:path_prefix] self.class.load!(self) end # Eager load the application configuration, by activating the framework # duplication mechanisms.