なるようになるブログ

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

rails commit log流し読み(2014/08/05)

2014/08/05分のコミットです。

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


Fix typo [ci skip]

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

typoの修正。


Only define Objetc#itself when it is not defined

activesupport/lib/active_support/core_ext/object/itself.rbの修正です。

itselfメソッドの存在チェックを行い、無い場合のみ定義するよう対応しています。Ruby2.2以上だと、標準で定義されているからですね。


[ci skip] Guides: Add definition of config.assets.manifest option to configuring.md

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

config.assets.manifestについての説明を追加しています。


Update itself.rb [ci skip]

activesupport/lib/active_support/core_ext/object/itself.rbのdocの修正です。

説明文中のtoforに修正。typoの修正。


Don't delegate Reflection#chain to ThroughAssociation

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

ThroughAssociationmoduleでchaindelegate対象にしていたのを削除しています。代わりにreflecion.chainを使用するように修正しています。


avoid testing only_path

actionpack/lib/action_controller/test_case.rbの修正です。

only_pathのテストを行わないよう修正しています。


Call public methods rather than class_eval'ing

activemodel/lib/active_model/naming.rbの修正です。

class_eval内でメソッド呼び出しをしていたのを止めて、普通にpublic methodとして呼び出しています。


Remove unused text? predicate method and delegation

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

使用していないtext?メソッドを削除しています。


Bring back the helpers tests

generatorの修正です。

先日削除されたhelperのテスト生成処理を一部戻しています。

この処理に依存している他のツール等もあると思われるので、railsではhook_forで処理の呼び出しだけは行うようにしています。ファイルの生成は行わないままです。


Fix AS docs / changelog with wrong method [ci skip]

activesupport/CHANGELOG.mdactivesupport/lib/active_support/core_ext/object/itself.rbの修正です。

メソッド名にtypoがあったのを修正しています。