1
0
Fork 0
mirror of https://github.com/heartcombo/devise.git synced 2022-11-09 12:18:31 -05:00

config.load_paths is now config.autoload_paths

This commit is contained in:
Rob Holland 2010-06-24 18:36:24 +08:00 committed by José Valim
parent 895a7a4951
commit ad63e25c89

View file

@ -17,8 +17,8 @@ require "devise"
module RailsApp
class Application < Rails::Application
# Add additional load paths for your own custom dirs
config.load_paths.reject!{ |p| p =~ /\/app\/(\w+)$/ && !%w(controllers helpers views).include?($1) }
config.load_paths += [ "#{config.root}/app/#{DEVISE_ORM}" ]
config.autoload_paths.reject!{ |p| p =~ /\/app\/(\w+)$/ && !%w(controllers helpers views).include?($1) }
config.autoload_paths += [ "#{config.root}/app/#{DEVISE_ORM}" ]
# Configure generators values. Many other options are available, be sure to check the documentation.
# config.generators do |g|