Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Load models from eager_load, not autoload_paths
If something is in `autoload_paths`, it doesn't mean it can or should *always* be loaded. Rails explicitly makes this distinction with `eager_load`. E.g. if I'm developing a Rails engine, I might want to add `lib` to autoload paths (to ease the development of the engine), but that doesn't mean I want to eagerly load ruby files in `lib/generators/templates`! Resolves railsadminteam#2770
- Loading branch information