Created
August 2, 2018 17:56
-
-
Save astyagun/6757a2231a1b71cfad89f69e0c4efaf0 to your computer and use it in GitHub Desktop.
Dump Rails configuration using Pry
This file contains hidden or 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
def dump_config | |
output = '' | |
Pry::ColorPrinter.pp(Rails.configuration, output, Pry::Terminal.width! - 1) | |
File.write 'current', output | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment