なるようになるブログ

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

rails commit log流し読み(2015/05/18)

2015/05/18分のコミットです。

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


config.generators javascript_engine default value is :js not nil [ci skip]

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

javascript_engineのデフォルト値の説明が誤っていたのを修正しています。


formatting changes [ci skip]

actionmailer/lib/action_mailer/base.rbのdocの修正です。

ActionMailer::Baseのdocのグラマーの修正、不要なカンマの削除、長い行の適切な位置に改行を追加、等を行っています。


add missing documentation about generators resource_route [ci skip]

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

config.generatorsに設定可能な値の一覧にresource_routeの説明が漏れていたので追加しています。


[ci skip] remove assigns from the integration test example in API docs

actionpack/lib/action_dispatch/testing/integration.rbのdocの修正です。

integration testのexampleで assignsメソッドを使用していたのをassert_selectメソッドを使用するよう修正しています。assignsメソッド削除予定の為との事です。


better add_reference documentation. [ci skip]

activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rbactiverecord/lib/active_record/connection_adapters/abstract/schema_statements.rbのdocの修正です。

add_referenceメソッドのドキュメントの改善を行っています。

  • 重複している説明を削除
  • add_referenceメソッドで使用可能なオプションについての詳細な説明追加
  • referencesメソッドのdocからadd_referenceメソッドのdocへのリンクを追加

sqlite3_mem has an existing connection

activerecord/test/cases/connection_pool_test.rbの取得です。

複数にコネクションを同時に接続するテストで、テスト内容にconnectionの数を確認するテストを追加しています。


Refactoring ActiveRecord::Type::Integer limit

activerecord/lib/active_record/type/integer.rbリファクタリングです。

ensure_in_rangemax_valueメソッドそれぞれで実装していたlimit値の取得処理を_limitメソッドに切り出しています。