Skip to content

Commit

Permalink
autoload /lib
Browse files Browse the repository at this point in the history
  • Loading branch information
pubis committed Sep 28, 2012
1 parent bf86f10 commit 3889819
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ class Application < Rails::Application
# Deep-load model directory
config.autoload_paths += Dir[Rails.root.join('app', 'models', '{**}')]

config.autoload_paths += %W(#{config.root}/lib)

# 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.
# config.plugins = [ :exception_notification, :ssl_requirement, :all ]
Expand Down

0 comments on commit 3889819

Please sign in to comment.