Skip to content

Instantly share code, notes, and snippets.

@lin
Created February 26, 2015 17:26
Show Gist options
  • Select an option

  • Save lin/5949126a63f93ca23b66 to your computer and use it in GitHub Desktop.

Select an option

Save lin/5949126a63f93ca23b66 to your computer and use it in GitHub Desktop.
Rails tricks

To let the application to load all the files in app/models/folder,

In application.rb add following line:

config.autoload_paths += Dir[ Rails.root.join('app', 'models', '**/') ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment