-
Notifications
You must be signed in to change notification settings - Fork 3
Use render plain:
instead of the deprecated render text:
#85
Conversation
'render text:' has been deprecated in Rails 5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
Since it's open source, perhaps we should mention the minimum rails version (when render plain
was introduced).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🏆
Yeah I think we should specify a dependency on Rails 5 for this version (https://github.com/envato/guide/blob/master/guide.gemspec#L17), since we are removing the handling for versions less than 5, otherwise +1 |
If we're dropping support for rails 4 then the |
Oh ok, so the tests pass in Rails 4? I just assumed update: I just looked at the build and saw it does in fact pass. Great! |
Gem published to rubygems.org (https://rubygems.org/gems/guide)
|
Rails 5 deprecated
render text: 'plain text'
. Instead,render plain: 'plain text'
should be used.Considerations