なるようになるブログ

読書感想文かrailsについてかrubyについてか

rails commit log流し読み(2018/02/08)

2018/02/08分のコミットです。

CHANGELOGへの追加はありませんでした。


Fix blob.service_url for supports string or nil :filename option.

activestorage/app/models/active_storage/blob.rbの修正です。

ActiveStorage::Blob#service_urlメソッドのfilenameオプションにStringを渡せるよう修正しています。

元々はblob.service_url(filename: ActiveStorage::Filename.new("new.txt"))とする必要があったのですが、これをblob.service_url(filename: "new.txt")とすることができます。


Do not add master key when RAILS_MASTER_KEY env specified (#31922)

railties/lib/rails/commands/credentials/credentials_command.rbrailties/lib/rails/commands/encrypted/encrypted_command.rbの修正です。

credentials:edit、及び、encrypted:editコマンドでRAILS_MASTER_KEY envが指定されている場合もmaster keyファイルを生成してしまうバグがあったのを修正しています。


Add missing require

activesupport/test/core_ext/duration_test.rbの修正です。

yamlのrequireが不足していたので追加しています。


Add docs on how to configure Active Storage

rails guideのConfiguring Rails Applicationsの修正です。

Configuring Active Storageの項を追加し、Active Storageのconfigについての説明を追加しています。


Merge pull request #31925 from composerinteralia/semicolon

rails guideのSecuring Rails Applicationsの修正です。

パスワードについて説明していたGood Passwordsの項をまるまる削除しています。

良いパスワードについて議論する事はRailsの責務の範囲ではないだろう、という事で削除されました。