Created
June 8, 2015 11:40
-
-
Save kucaahbe/1416185d44ca73db6f4b to your computer and use it in GitHub Desktop.
Rails old-style configs to new style rename
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
sed -i.bak -E "s/YAML\.load_file\(Rails\.root\.join\('config\/(.+)\.yml'\)\)\[Rails\.env\]/Rails.application.config_for('\1')/" $(git grep -l YAML.load_file) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment