Skip to content

Instantly share code, notes, and snippets.

View mjason's full-sized avatar

Mj mjason

  • South China University of Technology
  • Guangzhou, China
  • 11:51 (UTC +08:00)
View GitHub Profile
@mjason
mjason / Vagrantfile
Last active August 29, 2015 14:15 — forked from ianmstew/Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
require "rbconfig"
HOST_NAME = "prerender"
VAGRANTFILE_API_VERSION = "2"
Vagrant.require_version ">= 1.5"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|

In Rails 3

NOTE: This post now lives (and kept up to date) on my blog: http://hakunin.com/rails3-load-paths

If you add a dir directly under app/

Do nothing. All files in this dir are eager loaded in production and lazy loaded in development by default.

If you add a dir under app/something/