File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
lib/action_controller/caching Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -173,7 +173,7 @@ def around(controller)
173
173
body = controller . _save_fragment ( cache_path . path , @store_options )
174
174
end
175
175
176
- body = controller . render_to_string ( text : body , layout : true ) unless cache_layout
176
+ body = controller . render_to_string ( plain : body , layout : true ) unless cache_layout
177
177
178
178
controller . response_body = body
179
179
controller . content_type = Mime [ cache_path . extension || :html ]
Original file line number Diff line number Diff line change @@ -50,27 +50,27 @@ class ActionCachingTestController < CachingController
50
50
51
51
def index
52
52
@cache_this = MockTime . now . to_f . to_s
53
- render text : @cache_this
53
+ render plain : @cache_this
54
54
end
55
55
56
56
def redirected
57
57
redirect_to action : 'index'
58
58
end
59
59
60
60
def forbidden
61
- render text : 'Forbidden'
61
+ render plain : 'Forbidden'
62
62
response . status = '403 Forbidden'
63
63
end
64
64
65
65
def with_layout
66
66
@cache_this = MockTime . now . to_f . to_s
67
67
@title = nil
68
- render text : @cache_this , layout : true
68
+ render plain : @cache_this , layout : true
69
69
end
70
70
71
71
def with_format_and_http_param
72
72
@cache_this = MockTime . now . to_f . to_s
73
- render text : @cache_this
73
+ render plain : @cache_this
74
74
end
75
75
76
76
def with_symbol_format
@@ -87,7 +87,7 @@ def record_not_found
87
87
end
88
88
89
89
def four_oh_four
90
- render text : "404'd!" , status : 404
90
+ render plain : "404'd!" , status : 404
91
91
end
92
92
93
93
def simple_runtime_error
@@ -118,7 +118,7 @@ def expire_with_url_string
118
118
end
119
119
120
120
def streaming
121
- render text : 'streaming' , stream : true
121
+ render plain : 'streaming' , stream : true
122
122
end
123
123
124
124
def invalid
You can’t perform that action at this time.
0 commit comments