Permalink
Browse files

autoloading models in subdirs

  • Loading branch information...
1 parent 727a5e2 commit b10d3c639121631a03fd571979a78d53ad4607d4 @benilovj benilovj committed Jan 28, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 config/application.rb
View
1 config/application.rb
@@ -23,6 +23,7 @@ class Application < Rails::Application
# Custom directories with classes and modules you want to be autoloadable.
# config.autoload_paths += %W(#{config.root}/extras)
+ config.autoload_paths += Dir[Rails.root.join('app', 'models', '{**}')]
# Only load the plugins named here, in the order given (default is alphabetical).
# :all can be used as a placeholder for all plugins not explicitly named.

0 comments on commit b10d3c6

Please sign in to comment.