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 1
1
< 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
11
11
render ( ControllerInlineComponent . new ( message : "bar" ) )
12
12
end
13
13
14
+ def controller_inline_cached
15
+ foo = params [ :foo ] || "foo"
16
+ bar = params [ :bar ] || "bar"
17
+ render ( CacheComponent . new ( foo :, bar :) )
18
+ end
19
+
14
20
def controller_inline_with_block
15
21
render ( ControllerInlineWithBlockComponent . new ( message : "bar" ) . tap do |c |
16
22
c . with_slot ( name : "baz" )
Original file line number Diff line number Diff line change 11
11
get :inline_products , to : "integration_examples#inline_products"
12
12
get :cached , to : "integration_examples#cached"
13
13
get :render_check , to : "integration_examples#render_check"
14
+ get :controller_inline_cached , to : "integration_examples#controller_inline_cached"
14
15
get :controller_inline , to : "integration_examples#controller_inline"
15
16
get :controller_inline_with_block , to : "integration_examples#controller_inline_with_block"
16
17
get :controller_inline_baseline , to : "integration_examples#controller_inline_baseline"
You can’t perform that action at this time.
0 commit comments