This project is archived and is in readonly mode.
problem with module loading
-
Andrew White
- State changed from new to invalid
- Importance changed from to Low
In Rails 3 files in lib are no longer autoloaded - you need to require them explicitly, e.g:
require 'test_mod' class Nsp::UsersController < ApplicationController include TestMod def index tst_helper end endThe reason for this is that autoload paths are eagerly loaded in production and the lib path may contain files you don't want in a production app like tasks, generators, etc.
