Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

26 lines (14 sloc) 562 Bytes
== LoadOrRequire
What's the proper way to load a file in rails?
require => wrong
load => wrong
autoload => who knows
It all depends on your environment settings. Some env's have cache_classes = true (e.g., production,
which uses require), others have cache_classes = false (e.g. development, for auto-reloading).
== Usage
load_or_require "my_file"
== Author
Scott Taylor <>
Development sponsored by EastMedia (
== License
Dual licensed under the MIT and GPL3 licenses
Jump to Line
Something went wrong with that request. Please try again.