add RequestStore gem, support universal only param for api endpoints (fixes #4068)

This commit is contained in:
Albert Yi
2019-04-17 12:00:19 -07:00
parent c18cf5480d
commit a12f6badde
6 changed files with 38 additions and 2 deletions

View File

@@ -14,7 +14,7 @@ class PostsController < ApplicationController
respond_with(@posts) do |format|
format.atom
format.xml do
render :xml => @posts.to_xml(:root => "posts")
render xml: @posts.to_xml(root: "posts")
end
end
end