Skip to content

Commit 882b02a

Browse files
eileencodespixeltrix
authored andcommitted
Fix render nothing deprecation warning
`render nothing:` is deprecated. If you want nothing rendered you should use `head :ok`.
1 parent d148b81 commit 882b02a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/caching_test.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,17 +104,17 @@ def simple_runtime_error
104104

105105
def expire
106106
expire_action controller: 'action_caching_test', action: 'index'
107-
render nothing: true
107+
head :ok
108108
end
109109

110110
def expire_xml
111111
expire_action controller: 'action_caching_test', action: 'index', format: 'xml'
112-
render nothing: true
112+
head :ok
113113
end
114114

115115
def expire_with_url_string
116116
expire_action url_for(controller: 'action_caching_test', action: 'index')
117-
render nothing: true
117+
head :ok
118118
end
119119

120120
def streaming

0 commit comments

Comments
 (0)