Last active
December 21, 2015 18:19
-
-
Save deevis/6346943 to your computer and use it in GitHub Desktop.
Reload Rails Controllers and/or Models
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
# Controllers | |
Dir["#{Rails.root}/../pyr/*/app/controllers/**/*.rb"].each{|p| puts "require #{p}";require p};nil | |
# Models | |
Dir["#{Rails.root}/../pyr/*/app/models/**/*.rb"].each{|p| puts "require #{p}";require p};nil |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment