Skip to content

Instantly share code, notes, and snippets.

@jmeirow
Created June 2, 2012 09:51
Show Gist options
  • Save jmeirow/2857556 to your computer and use it in GitHub Desktop.
Save jmeirow/2857556 to your computer and use it in GitHub Desktop.
Loading a class from Rails lib directory when using "rails console"
pry(main)> load "#{Rails.root}/lib/yourfile.rb"
Thanks to "NulRef"
This info from http://stackoverflow.com/questions/6361401/can-rails-console-reload-modules-under-lib
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment