diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-05-16 20:38:27 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-05-16 20:38:27 -0300 |
commit | ec43d954c536a8ebab8b45d0b2e3a3aa361ec8ad (patch) | |
tree | c8a3088e4bcced5e0eab72d1c52746a8c059ed02 /railties | |
parent | 8941d5a36fb06211eb4672fec1169372602232ea (diff) | |
download | rails-ec43d954c536a8ebab8b45d0b2e3a3aa361ec8ad.tar.gz rails-ec43d954c536a8ebab8b45d0b2e3a3aa361ec8ad.tar.bz2 rails-ec43d954c536a8ebab8b45d0b2e3a3aa361ec8ad.zip |
foo :bomb:
Diffstat (limited to 'railties')
-rw-r--r-- | railties/lib/rails/generators/rails/app/app_generator.rb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/railties/lib/rails/generators/rails/app/app_generator.rb b/railties/lib/rails/generators/rails/app/app_generator.rb index e3a4a70e93..073e2d7380 100644 --- a/railties/lib/rails/generators/rails/app/app_generator.rb +++ b/railties/lib/rails/generators/rails/app/app_generator.rb @@ -87,10 +87,13 @@ module Rails end def config_when_updating - foo = File.exist?('config/initializers/cookies_serializer.rb') + cookie_serializer_config_exist = File.exist?('config/initializers/cookies_serializer.rb') + config - gsub_file 'config/initializers/cookies_serializer.rb', /json/, 'marshal' unless foo + unless cookie_serializer_config_exist + gsub_file 'config/initializers/cookies_serializer.rb', /json/, 'marshal' + end end def database_yml |