Switch branches/tags
Nothing to show
Find file
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