lib/cream/configure/rails.rb in cream-0.8.6 vs lib/cream/configure/rails.rb in cream-0.8.7
- old
+ new
@@ -1,8 +1,10 @@
require 'active_support/railtie'
require 'r3_plugin_toolbox'
+require_all File.dirname(__FILE__) + '/after_init'
+
Rails3::Plugin::Extender.new do
# extend action_controller with methods from some modules
extend_rails :controller do
extend_from_module Cream, :role
@@ -14,13 +16,14 @@
extend_rails :view do
extend_from_module Cream::View, :role, :host, :user_action_menu
extend_from_module Cream::Helper, :role
end
- after :initialize do
- require_all File.dirname(__FILE__) + '/after_init'
-
- # Rails3.with_configuration do
- # load_paths += %W(#{Rails.root}/app/permits)
+ after :initialize do
+ load File.dirname(__FILE__) + '/after_init/role_config.rb'
+ #
+ # extend_rails :view do
+ # extend_from_module Cream::View, :role
+ # extend_from_module Cream::Helper, :role
# end
end
end