2016/07/04分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
actioncable/CHANGELOG.md
Merge pull request #25241 from aguynamedben/fix-touch-error-messages
activerecord/lib/active_record/persistence.rb
、
activerecord/lib/active_record/touch_later.rb
の修正です。
touch
メソッドでエラーになった際に、より詳細なエラーの情報を出力するよう修正しています。
# before User.new.touch # => ActiveRecord::ActiveRecordError: cannot touch on a new record object # after User.new.touch # => ActiveRecord::ActiveRecordError: cannot touch on a new or destroyed record object. Consider using persisted?, new_record?, or destroyed? before touching
Merge pull request #25030 from mmmpa/pull_request
actioncable/lib/action_cable/subscription_adapter/subscriber_map.rb
の修正です。
SubscriptionAdapter::SubscriberMap#broadcast
でbroadcastの対象となるsubscriberを取得する際に、対象のsubscriberが既にchannelをremove済みでないかどうかチェックするよう修正しています。
Merge pull request #24988 from mwear/action_cable_broadcast_notifications
actioncable/lib/action_cable/server/broadcasting.rb
の修正です。
Broadcaster#broadcast
メソッドを実行する際に、ActiveSupport::Notifications
のhook処理を行うよう修正しています。keyはbroadcast.action_cable
です。
Merge pull request #25663 from vipulnsward/updated-syntax-highlighter
Rails guideの修正です。
Rails guideで使用しているSyntaxHighlighterのバージョンをv3からv4にあげています。古い SyntaxHighlighterだとページからのコピペが上手く動かないケースがあった為のようです。
Pathname might not be always initialized.
activesupport/test/testing/file_fixtures_test.rb
の修正です。
不足していたpathname
のrequireを追加しています。
Fixed unnecessary nesting in handle_dependency
activerecord/lib/active_record/associations/has_many_association.rb
の修正です。
ActiveRecord::Associations::HasManyAssociation#handle_dependency
メソッド内のcase / whenを使ってdependent
毎に処理分岐をしている箇所で、最後のelseの中で更にdependent
の値を見て処理分岐をしていたのを、whenの分岐自体を追加し、elseの中での分岐を削除しています。
+ when :destroy + # No point in executing the counter update since we're going to destroy the parent anyway + load_target.each { |t| t.destroyed_by_association = reflection } + destroy_all else - if options[:dependent] == :destroy - # No point in executing the counter update since we're going to destroy the parent anyway - load_target.each { |t| t.destroyed_by_association = reflection } - destroy_all - else - delete_all - end + delete_all
activerecord/lib/active_record/attribute_methods.rb
のdocの修正です。
respond_to?
メソッドのdoc内のexampleコードがrespond_to'になっていたのを、
respond_to?`に修正しています。
Tiny documentation fixes [ci skip]
actionview/lib/action_view/helpers/tag_helper.rb
のdocの修正です。
tag
メソッドのdocのフォーマットの修正を行っています。