aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/core_ext/module
diff options
context:
space:
mode:
authoryuuji.yaginuma <yuuji.yaginuma@gmail.com>2017-07-08 18:53:32 +0900
committeryuuji.yaginuma <yuuji.yaginuma@gmail.com>2017-07-09 09:25:45 +0900
commitbe4ebc47807948ed8d40c04d0a134f7de1ec0fc2 (patch)
treed094622886a67948d14d2224dcfdf47987b32474 /activesupport/test/core_ext/module
parent650ea5e5cf50d8a7242499463cf1762922d330a8 (diff)
downloadrails-be4ebc47807948ed8d40c04d0a134f7de1ec0fc2.tar.gz
rails-be4ebc47807948ed8d40c04d0a134f7de1ec0fc2.tar.bz2
rails-be4ebc47807948ed8d40c04d0a134f7de1ec0fc2.zip
Treat secrets as binary
Until Rails 5.1.1 secrets was treated as binary inside Rails. https://github.com/rails/rails/blob/v5.1.1/railties/lib/rails/secrets.rb#L59 https://github.com/rails/rails/blob/v5.1.1/railties/lib/rails/secrets.rb#L63 However, it is treated as String in Rails 5.1.2(changed by 157db872103429e8782b62d1cb5d1d91337177a7). https://github.com/rails/rails/blob/v5.1.2/railties/lib/rails/secrets.rb#L104 https://github.com/rails/rails/blob/v5.1.2/railties/lib/rails/secrets.rb#L108 As a result, when upgrading from Rails 5.1.1 to 5.1.2, to write the value treated as binary using `File.write`, causing an error. In order to avoid `UndefinedConversionError`, fixed it to treat it as binary like 5.1.1. Fixes #29696
Diffstat (limited to 'activesupport/test/core_ext/module')
0 files changed, 0 insertions, 0 deletions