letter_opener_config = < 'localhost:3000' } LETTER_OPENER in_root do inject_into_file 'config/environments/development.rb', letter_opener_config, { before: /^end/, verbose: false } end git add: 'config/environments/development.rb' git_commit 'Add letter_opener config.'