Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Rails plugin. Calls load when cache_classes = false, otherwise calls require
Ruby
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
spec
GPL_LICENSE
MIT_LICENSE
README
init.rb

README

== 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 <scott@railsnewbie.com>

  Development sponsored by EastMedia (http://eastmedia.com/)

== License
  
  Dual licensed under the MIT and GPL3 licenses
Something went wrong with that request. Please try again.