Shall I prefer "require_or_load" vs "require"?


I see that “require_or_load” keeps a “loaded” array with the files that have been required or loaded. Shall I prefer “require_or_load” vs “required” in my Ruby on Rails code.

Note that I have come to this after trying to sort out a list of WARNINGS that I was getting when, on development environment, I turned the “config.eager_load” to “true”.

The warnings were about constants already defined, which was because some of the files, originally “required”, then with “config.eager_load” “true” were “loaded” second time.

Your thoughts?