Permalink
Browse files

using new ext convention

  • Loading branch information...
1 parent 30fc73d commit 62e0d1b6e184482bbc39831d3cca7d290c0f89c6 @kristianmandrup committed Dec 1, 2011
View
@@ -3,7 +3,7 @@ source :rubygems
group :default do
gem 'rails', '>= 3.1'
gem 'sugar-high', '>= 0.6.0'
- gem 'sweetloader', '~> 0.1.4'
+ gem 'sweetloader', '~> 0.1.5'
gem 'hashie', '~> 0.4.0'
gem 'cantango-config', :git => 'git://github.com/kristianmandrup/cantango-config.git'
View
@@ -120,7 +120,7 @@ GEM
sqlite3 (1.3.4)
sugar-high (0.6.0)
activesupport (>= 3.0.1)
- sweetloader (0.1.4)
+ sweetloader (0.1.5)
activesupport (>= 3.0.1)
i18n
thor (0.14.6)
@@ -149,4 +149,4 @@ DEPENDENCIES
spork
sqlite3
sugar-high (>= 0.6.0)
- sweetloader (~> 0.1.4)
+ sweetloader (~> 0.1.5)
View
@@ -6,10 +6,6 @@
require 'cantango/core'
require 'cantango/config'
-AutoLoader.mode = :require
+SweetLoader.mode = :require
-module CanTango
- autoload_scope :ns => {:CanTango => 'cantango/roles'} do
- autoload_modules :Configuration, :Filter, :Helpers
- end
-end
+require 'cantango/roles_ext'
@@ -0,0 +1,9 @@
+module CanTango
+ autoload_scope :ns => {:CanTango => 'cantango/roles'} do
+ autoload_modules :Ability, :Builder, :Configuration, :Engine, :Filter, :Helpers
+
+ if defined? CanTango::Permit
+ autoload_modules :Permit
+ end
+ end
+end
@@ -0,0 +1,7 @@
+module CanTango
+ module Engine
+ if defined? CanTango::Permit
+ autoload_modules :Permit
+ end
+ end
+end
File renamed without changes.
File renamed without changes.
No changes.

0 comments on commit 62e0d1b

Please sign in to comment.