1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

development.rb file always exists so we don't need a check for it

This commit is contained in:
Prathamesh Sonpatki 2016-03-26 10:45:13 +05:30
parent 044baef101
commit 9c010026c1

View file

@ -95,13 +95,10 @@ module Rails
action_cable_config_exist = File.exist?('config/cable.yml')
ssl_options_exist = File.exist?('config/initializers/ssl_options.rb')
rack_cors_config_exist = File.exist?('config/initializers/cors.rb')
development_config_exist = File.exist?('config/environments/development.rb')
config
if development_config_exist
gsub_file 'config/environments/development.rb', /^(\s+)config\.file_watcher/, '\1# config.file_watcher'
end
unless callback_terminator_config_exist
remove_file 'config/initializers/callback_terminator.rb'