Created
September 5, 2016 19:38
-
-
Save mbijon/fe626b9726584daaafb3b3e4efaa0b80 to your computer and use it in GitHub Desktop.
Output load order of Rails boot/init/config files Add following code to bin/rails & run `rails s` w/ logging. Not 100% complete, but fills-in blanks in http://guides.rubyonrails.org/initialization.html --from: http://stackoverflow.com/q/8672803/982920
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
files = [] | |
tp = TracePoint.new(:line) do |tp| | |
if tp.path =~ /bole_api/ | |
unless files.include? tp.path | |
puts "#{tp.path}".inspect | |
files.push(tp.path) | |
end | |
end | |
end | |
tp.enable |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment