Skip to content

Instantly share code, notes, and snippets.

@astyagun
Created August 2, 2018 17:56
Show Gist options
  • Save astyagun/6757a2231a1b71cfad89f69e0c4efaf0 to your computer and use it in GitHub Desktop.
Save astyagun/6757a2231a1b71cfad89f69e0c4efaf0 to your computer and use it in GitHub Desktop.
Dump Rails configuration using Pry
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