lib/troles/common/macros.rb in troles-0.5.2 vs lib/troles/common/macros.rb in troles-0.6.0
- old
+ new
@@ -7,13 +7,13 @@
# Usage:
# class User
# troles_strategy :bit_many
#
-module Troles
+module Troles::Common
module Macros
- autoload :Configuration, 'troles/common/macros/configuration'
+ autoload_modules :Configuration
def troles_strategy strategy, options = {}, &block
configuration = Configuration.new self, strategy, options
configuration.load_adapter
@@ -33,6 +33,5 @@
troles_config
end
end
end
-Module.send :include, Troles::Macros