lib/cantango/configuration.rb in cantango-config-0.1.2 vs lib/cantango/configuration.rb in cantango-config-0.1.3
- old
+ new
@@ -1,8 +1,10 @@
require 'set'
require 'singleton'
+require 'cantango/configuration'
+
module CanTango
# The main entry point to configure CanTango
class << self
def configure &block
conf = CanTango::Configuration.instance
@@ -12,21 +14,20 @@
alias_method :config, :configure
end
class Configuration
- autoload_modules :Categories
- autoload_modules :Models, :Engines, :Ability
- autoload_modules :Registry
- autoload_modules :Factory, :Autoload, :Adapters, :Debug, :Modes, :Orms, :Localhosts, :Hooks
+ autoload_modules :Models, :Registry, :Engines, :Factory, :ExecutionModes, :Modes, :Ability
+ autoload_modules :Categories, :Category
+ autoload_modules :Autoload, :Adapters, :Debug, :Orms, :Localhosts, :Hooks
autoload_modules :Account, :Accounts
autoload_modules :User, :Guest, :Users
include Singleton
def ability
@ability ||= conf::Ability.instance
- @ability.default_class ||= CanTango::Ability::Executor::Base
+ @ability.default_class ||= CanTango::Ability::Executor::Base # from cantango-core
@ability
end
def self.components
[