Created
June 2, 2012 09:51
-
-
Save jmeirow/2857556 to your computer and use it in GitHub Desktop.
Loading a class from Rails lib directory when using "rails console"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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