1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/guides
Stan Lo ab2af4dfcb Modify LogSubscriber for single partial's cache message.
Implement naive partial caching mechanism.

Add test for LogSubscriber

Use ActionView::Base#log_payload to store log_subscriber's payload, so we can pass cache result into it.

Fixed tests

Remove useless settings

Check if #log_payload exists before calling it. Because other classes also includes CacheHelper but don't have is attribute

Use @log_payload_for_partial_reder instead of #log_payload to carry ActionView's payload.

Update test's hash syntax

Add configuration to enable/disable fragment caching logging

Remove unless test and add new test to ensure cache info won't effect next rendering's log

Move :enable_fragment_cache_logging config from ActionView to ActionPack

Apply new config to tests

Update actionview's changelog

Update configuration guide

Improve actionview's changelog

Refactor PartialRenderer#render and log tests

Mute subscriber's log instead of disabling instrumentation.

Fix typo, remove useless comment and use new hash syntax

Improve actionpack's log_subscriber test

Fix rebase mistake

Apply new config to all caching intstrument actions
2016-08-08 00:24:39 +08:00
..
assets - Update Syntax Highlighter to version 4. 2016-07-03 00:20:27 -07:00
bug_report_templates applies new string literal convention in guides 2016-08-06 19:21:59 +02:00
rails_guides applies remaining conventions across the project 2016-08-06 20:20:22 +02:00
source Modify LogSubscriber for single partial's cache message. 2016-08-08 00:24:39 +08:00
.document
CHANGELOG.md Start Rails 5.1 development 🎉 2016-05-10 03:46:56 -03:00
rails_guides.rb applies new string literal convention in guides 2016-08-06 19:21:59 +02:00
Rakefile normalizes indentation and whitespace across the project 2016-08-06 20:16:27 +02:00
w3c_validator.rb applies remaining conventions across the project 2016-08-06 20:20:22 +02:00