Module: Practical::Views::JSONRedirection
- Defined in:
- app/controllers/concerns/practical/views/json_redirection.rb
Instance Method Summary collapse
Instance Method Details
#json_redirect(location:) ⇒ Object
4 5 6 |
# File 'app/controllers/concerns/practical/views/json_redirection.rb', line 4 def json_redirect(location:) render json: {location: location}, status: 322 end |