なるようになるブログ

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

rails commit log流し読み(2014/07/04)

2014/07/04分のコミットです。

CHANGELOGにのったコミットは以下の通りです。

activerecord/CHANGELOG.md


Fix guide. sample code syntax error.[ci skip]

rails guideのActive Record Validationsの修正です。

exampleにカンマが足りなくて構文エラーになっていた箇所があったのを修正しています。


Remove unneccessary special case for money in quoting

activerecord/lib/active_record/connection_adapters/postgresql/quoting.rbの修正です。

money型を使用している時のquote処理を削除しています。


Add arel to the controller template

guides/bug_report_templates/action_controller_master.rbの修正です。

Gemfileにgem 'arel'を追加しています。

railsarelを必要としている為ですね。


[ci skip] /javascript/ -> JavaScript - cover whole app

各docの修正です。JavaScriptの表記の揺らぎがあったのを、全て"JavaScript"に修正しています。


:fire: these are lambdas now [ci skip]

activesupport/lib/active_support/callbacks.rbのdocの修正です。

invert_lambdaメソッドの引数の説明があやまっていたのを修正しています。


remove bundler magic

railties/lib/rails/generators/rails/app/templates/config/boot.rbの修正です。

require 'bundler/setup'時のif File.exist?(ENV['BUNDLE_GEMFILE'])を削除しています。

railsはbundler無い環境でロードされる事が無いから、との事です。


Display notice in index.html pages in scaffolded generated views

railties/lib/rails/generators/erb/scaffold/templates/index.html.erbの修正です。

テンプレートの先頭に<p id="notice"><%%= notice %></p>を追加しています。

scaffoldで生成されるサンプルではdestoy時にnoticeを設定するようにしている為、そのメッセージが表示されるようnoticeをを追加しいます。


After find-via-reload, the record is not new

activerecord/lib/active_record/persistence.rbの修正です。

reloadメソッド成功時に、必ずnew_record?メソッドがfalseを返すよう修正しています。


add test coverage for the action mailer

actionmailer/test/test_helper_test.rbの修正です。

テストを追加しています。test coverageの向上の為のようです。