2016/03/06分のコミットです。
CHANGELOGへの追加はありませんでした。
submit buttonのvalueに表示するmodel名を小文字に変換するよう修正した、Merge pull request #2764 from stevenspiel/titleize_model_name_for_default_submit_button_valueをrevertしています。
幾つかの言語でi18nの処理が壊れてしまった為、との事です。詳細はコメント参照。
Update the rendering guide to match the current behavior
rails guideのLayouts and Rendering in Rails
の修正です。
allow :file to be outside rails root, but anything else must be insid… · rails/rails@b7758b4でrender
メソッドに直接 rails root外のファイルを指定する事は出来ないよう対応したのですが、guideにそのパターンの例が残ってしまっていたので、削除しています。
chage date_time
type to
datetime`
activerecord/lib/active_record/type.rb
の修正です。
attributes APIで使用出来るデフォルトのDateTime
クラスのtypeをdate_time
からdatetime
に変更しています。migrationのtypeと合わせる為。
make attributes API example to work [ci skip]
activerecord/lib/active_record/attributes.rb
のdocの修正です。
attributes APIで独自のserializeを行う場合のexampleコードが正しく動かなかった(attribute
メソッドの引数の指定が誤っていた)のを修正しています。
remove entry for reverted commit [ci skip]
rails guideのRuby on Rails 5.0 Release Notes
の修正です。
Revert "Merge pull request #22764 from stevenspiel/titleize_model_name_for_default_submit_button_value"でrevertされた対応について、Rails 5.0のrelease noteから削除しています。
activerecord/lib/active_record/tasks/mysql_database_tasks.rb
の修正です。
--ssh-cipher
を--ssl-cipher
にタイポしていたのを修正しています。
activerecord/lib/active_record/enum.rb
のdocの修正です。
#enum
メソッド内にメソッド定義した場合のexampleコードがあるのですが、動作しないコードになってしまっていのを修正しています。
use dir to load the environment in config.ru
railties/lib/rails/generators/rails/app/templates/config.ru
の修正です。
config/environment
をrequireするのに、__FILE__
を使用していたのを__dir__
を使用するよう修正しています。
use dir to load the application in environment.rb
railties/lib/rails/generators/rails/app/templates/config/environment.rb
の修正です。
application
ファイルをrequireするのに、__FILE__
を使用していたのを__dir__
を使用するよう修正しています。
use dir for relative paths in config/boot.rb
railties/lib/rails/generators/rails/app/templates/config/boot.rb
、
railties/lib/rails/generators/rails/plugin/templates/rails/boot.rb
の修正です。
Gemfileをrequireするのに、__FILE__
を使用していたのを__dir__
を使用するよう修正しています。
use dir for relative paths in config/application.rb
railties/lib/rails/generators/rails/app/templates/config/application.rb
、
railties/lib/rails/generators/rails/plugin/templates/rails/application.rb
の修正です。
bootファイルをrequireするのに、__FILE__
を使用していたのを__dir__
を使用するよう修正しています。
prefer require_relative over require + File.expand_path
railtiesの修正です。
相対pathからファイルをrequireするのに、require + File.expand_pathを使用していたのを、require_relative
を使用するよう修正しています。
Merge pull request #24085 from vipulnsward/i18n-test-addition
railties/test/application/initializers/i18n_test.rb
の修正です。
i18nのテストで、テスト名と実際行っているテストの内容が異なっている箇所があったのを修正、及び、i18n.fallbacks
に直接Hashを指定した場合のテストを追加しています。