lib/cream/configure/rails.rb in cream-0.6.1 vs lib/cream/configure/rails.rb in cream-0.6.3
- old
+ new
@@ -16,7 +16,16 @@
extend_from_module Cream::Helper, :role, :auth_label
end
after :initialize do
require_all File.dirname(__FILE__) + '/after_init'
- end
+
+ Rails3.with_configuration do
+ autoload_paths += %W(#{Rails.root}/app/permits)
+ end
+
+ # set cream config object
+ # Rails3.with_configuration do
+ # cream = Cream::Rails::Config.new :roles => Cream::Role.available
+ # end
+ end
end