Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Rails plugin. Calls load when cache_classes = false, otherwise calls require

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 spec
Octocat-spinner-32 GPL_LICENSE
Octocat-spinner-32 MIT_LICENSE
Octocat-spinner-32 README
Octocat-spinner-32 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.