なるようになるブログ

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

rails commit log流し読み(2014/12/12)

2014/12/12分のコミットです。

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

activerecord/CHANGELOG.md


Fix undesirable RangeError by Type::Integer. Add Type::UnsignedInteger. ActiveRecordの修正です。

unsigned_int型のカラムに2147483648以上の値を設定した場合に、RangeErrorが発生してしまうバグがあったのを修正しています。


Update guides with info about vendor/assets

rails guideのThe Asset Pipelineの修正です。

Asset Pipelineを使用している場合、vendor/assets配下のファイルもasset_pathメソッド経由で取得する必要がある旨説明を追加しています。


Improve the test case introduced by bd0d47e

activerecord/test/cases/calculations_test.rbの修正です。

昨日コミットされた、polymorphic + pluckを使用した際の処理の修正のコミットのテストコードの整理を行っています。


Add test case for joined pluck

activerecord/test/cases/calculations_test.rbの修正です。

先の修正でjoin + pluckのテストケースを誤って削除してしまったので、テストケースを追加しています。


Merge pull request #17815 from yuki24/remove-custom-errors-page-section

rails guideのAction Controller Overviewの修正です。

Custom errors pageのセクションを削除しています。

config.exceptions_app = self.routesを使用すると、ActionController::BadRequestが500になってしまう問題があり、 今の記述内容を使用するのは、良くない、との事で削除しています。


Make AC::Params.permit_all_parameters thread safe

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

ActionController::Parameters.permit_all_parametersがThread safeになるよう修正しています。

+    # Returns the value of +permit_all_parameters+.
+    def self.permit_all_parameters
+      Thread.current[:action_controller_permit_all_parameters]
+    end
+
+    # Sets the value of +permit_all_parameters+.
+    def self.permit_all_parameters=(value)
+      Thread.current[:action_controller_permit_all_parameters] = value
+    end

English fix [ci skip]

activesupport/lib/active_support/core_ext/module/delegation.rbのdocの修正です。

"to be" -> "from being"に修正しています。