2016/12/23分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
Merge pull request #27424 from utilum/fix_complex_and_rational_are_duplicable
activesupport/lib/active_support/core_ext/object/duplicable.rb
の修正です。
Rational#duplicable?
、Complex#duplicable?
がfalseを返すよう修正しています。それぞれdup
出来ない為。
Unneeded attr_accessor with side effects
actionview/test/template/form_helper/form_with_test.rb
、
actionview/test/template/form_helper_test.rb
の修正です。
file_field
のテストから不要なmodelに対するattr_accessor
の呼び出しを削除しています。
Describe what we are protecting
各コンポーネントでprotected
を使用している箇所で、何故protected
を使用しるかの説明をコメントに追加しています。
Ruby 2.2以下だとprivate
+ attr_reader
を使用すると、Rubyのwarning(warning: private attribute?
)が出てしまう為protected
を使用しています。
参考:Bug #10967: Is "warning: private attribute?" wrong?
Privatize unneededly protected methods in Action View tests
Action Viewのテストで、protected
を使用しているが、protected
である必要が無いメソッドのアクセス制御をprivate
に変更しています。
Privatize unneededly protected methods in Action Pack tests
Action Packのテストで、protected
を使用しているが、protected
である必要が無いメソッドのアクセス制御をprivate
に変更しています。