lib/brief.rb in brief-1.5.2 vs lib/brief.rb in brief-1.6.0

- old
+ new

@@ -58,11 +58,14 @@ Brief.const_set(:DefaultModel, Class.new { include Brief::Model; def self.type_alias; "default"; end }) end end def self.load_modules_from(folder) - Dir[folder.join('**/*.rb')].each { |f| require(f) } + Dir[folder.join('**/*.rb')].each do |f| + #puts "Loading model from #{ f }" + require(f) + end end # Adapters for Rails, Middleman, or Jekyll apps def self.activate_adapter(identifier) require "brief/adapters/#{ identifier }" @@ -91,5 +94,8 @@ require 'brief/model/persistence' require 'brief/model/serializers' require 'brief/dsl' require 'brief/server' require 'brief/briefcase' +require 'brief/apps' + +Brief::Apps.create_namespaces()