mirror of
https://github.com/heartcombo/devise.git
synced 2026-01-10 23:38:10 -05:00
config.load_paths is now config.autoload_paths
This commit is contained in:
@@ -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|
|
||||
|
||||
Reference in New Issue
Block a user