2022/07/08分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
activejob/CHANGELOG.md
Merge pull request #45188 from tiramizoo/include-seconds-in-datetime-local-field
Action Viewの修正です。
datetime_local_field
にsecondsを出力するかどうかを指定する為のinclude_seconds
オプションを追加しています。false
を指定するとsecondsが出力されなくなるようになっています。
@user.born_on = Time.current datetime_field("user", "born_on", include_seconds: false) # => <input id="user_born_on" name="user[born_on]" type="datetime-local" value="2014-05-20T14:35" />
Add documentation to customize full_messages on ActiveModel and ActiveRecord
rails guideのConfiguring Rails Applications
の修正です。
ActiveModel::Error#full_message
のformatをカスタマイズする方法についての説明を追加しています。
Merge pull request #45528 from gmcgibbon/job_parent_option
Active Jobの修正です。
jobのgeneratorにparent classを指定する為の--parent
オプションを追加しています。