File tree Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 11< p class ='cache-component__cache-key '> <%= view_cache_dependencies %> </ p >
2- < p class ='cache-component__cache-message '> <%= "#{ foo } #{ bar } " %> </ p >
2+ < p class ='cache-component__cache-message ' data-time = data-time =" <%= Time . zone . now %> " > <%= "#{ foo } #{ bar } " %> </ p >
Original file line number Diff line number Diff line change @@ -11,6 +11,12 @@ def controller_inline
1111 render ( ControllerInlineComponent . new ( message : "bar" ) )
1212 end
1313
14+ def controller_inline_cached
15+ foo = params [ :foo ] || "foo"
16+ bar = params [ :bar ] || "bar"
17+ render ( CacheComponent . new ( foo :, bar :) )
18+ end
19+
1420 def controller_inline_with_block
1521 render ( ControllerInlineWithBlockComponent . new ( message : "bar" ) . tap do |c |
1622 c . with_slot ( name : "baz" )
Original file line number Diff line number Diff line change 1111 get :inline_products , to : "integration_examples#inline_products"
1212 get :cached , to : "integration_examples#cached"
1313 get :render_check , to : "integration_examples#render_check"
14+ get :controller_inline_cached , to : "integration_examples#controller_inline_cached"
1415 get :controller_inline , to : "integration_examples#controller_inline"
1516 get :controller_inline_with_block , to : "integration_examples#controller_inline_with_block"
1617 get :controller_inline_baseline , to : "integration_examples#controller_inline_baseline"
You can’t perform that action at this time.
0 commit comments