Closed sebjacobs closed 6 years ago
In Rails 5 the render method deprecated a number of options including the nothing option [1] (this option was removed entirely in Rails 5.1).
render
nothing
Previously vanity relied on this method for implementing its add_participant controller endpoint.
add_participant
Rather than using render nothing: true, we can use the head method if we do not require a body in the response.
render nothing: true
head
Notes
It looks like the head method is available in all versions of Rails supported by Vanity (including Rails 3.2).
[1] https://github.com/rails/rails/pull/20336
The build failure appears related to an issue installing jruby 1.9
Thanks @sebjacobs!
In Rails 5 the
render
method deprecated a number of options including thenothing
option [1] (this option was removed entirely in Rails 5.1).Previously vanity relied on this method for implementing its
add_participant
controller endpoint.Rather than using
render nothing: true
, we can use thehead
method if we do not require a body in the response.Notes
It looks like the
head
method is available in all versions of Rails supported by Vanity (including Rails 3.2).[1] https://github.com/rails/rails/pull/20336