We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 83243ce commit ba11500Copy full SHA for ba11500
test/caching_test.rb
@@ -82,7 +82,7 @@ def with_symbol_format
82
end
83
84
def not_url_cache_path
85
- render text: 'cache_this'
+ render plain: 'cache_this'
86
87
88
def record_not_found
@@ -137,6 +137,16 @@ def invalid
137
def cache_path_protected_method
138
['controller', params[:id]].compact.join('-')
139
140
+
141
+ if ActionPack::VERSION::STRING < "4.1"
142
+ def render(options)
143
+ if options.key?(:plain)
144
+ super({ text: options.delete(:plain) }.merge(options))
145
+ else
146
+ super
147
+ end
148
149
150
151
152
class MockTime < Time
0 commit comments