diff options
author | Prathamesh Sonpatki <csonpatki@gmail.com> | 2016-02-25 09:43:33 +0530 |
---|---|---|
committer | Prathamesh Sonpatki <csonpatki@gmail.com> | 2016-02-25 09:43:33 +0530 |
commit | 9ea8de334e6298210b96ff1ff9c02f266d79b8d2 (patch) | |
tree | e136fde0a3c81882ba73e5a957e94a85f4eb50e0 /railties/lib | |
parent | 00c4ecf38c303210ceb869cfc6d4c1f9f05b8050 (diff) | |
download | rails-9ea8de334e6298210b96ff1ff9c02f266d79b8d2.tar.gz rails-9ea8de334e6298210b96ff1ff9c02f266d79b8d2.tar.bz2 rails-9ea8de334e6298210b96ff1ff9c02f266d79b8d2.zip |
Old applications will not get the ssl_options initializer
- We will remove the initializer for old apps which are migrated to
Rails 5 so that they are not affected by this breaking change.
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/rails/generators/rails/app/app_generator.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/railties/lib/rails/generators/rails/app/app_generator.rb b/railties/lib/rails/generators/rails/app/app_generator.rb index 07d38605a2..4234706452 100644 --- a/railties/lib/rails/generators/rails/app/app_generator.rb +++ b/railties/lib/rails/generators/rails/app/app_generator.rb @@ -92,6 +92,7 @@ module Rails callback_terminator_config_exist = File.exist?('config/initializers/callback_terminator.rb') active_record_belongs_to_required_by_default_config_exist = File.exist?('config/initializers/active_record_belongs_to_required_by_default.rb') action_cable_config_exist = File.exist?('config/cable.yml') + ssl_options_exist = File.exist?('config/initializers/ssl_options.rb') config @@ -110,6 +111,10 @@ module Rails unless action_cable_config_exist template 'config/cable.yml' end + + unless ssl_options_exist + remove_file 'config/initializers/ssl_options.rb' + end end def database_yml |