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:
parent
044baef101
commit
9c010026c1
1 changed files with 1 additions and 4 deletions
|
@ -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
|
||||
gsub_file 'config/environments/development.rb', /^(\s+)config\.file_watcher/, '\1# config.file_watcher'
|
||||
|
||||
unless callback_terminator_config_exist
|
||||
remove_file 'config/initializers/callback_terminator.rb'
|
||||
|
|
Loading…
Reference in a new issue