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:
parent
895a7a4951
commit
ad63e25c89
1 changed files with 2 additions and 2 deletions
|
@ -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|
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue