blog.robotex.de

Autloading for the lib-folder inside rails engines

# foo/engine.rb
module Foo
  class Engine < ::Rails::Engine
    config.autoload_paths += Dir["#{config.root}/lib/**/"]
  end
end

Back