Skip to content

Commit

Permalink
Fix deprecation warnings by switching text to plain
Browse files Browse the repository at this point in the history
Fixes deprecation warning to swicth from using `render text:` to `render
plain:`.

```
`render :text` is deprecated because it does not actually render a
`text/plain` response. Switch to `render plain: 'plain text'` to render
as `text/plain`
```
  • Loading branch information
eileencodes committed Aug 26, 2015
1 parent 5f707a6 commit 7c26771
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/webservice_test.rb
Expand Up @@ -4,9 +4,9 @@ class WebServiceTest < ActionDispatch::IntegrationTest
class TestController < ActionController::Base
def assign_parameters
if params[:full]
render :text => dump_params_keys
render plain: dump_params_keys
else
render :text => (params.keys - ['controller', 'action']).sort.join(", ")
render plain: (params.keys - ['controller', 'action']).sort.join(", ")
end
end

Expand Down

0 comments on commit 7c26771

Please sign in to comment.