Fix exception in legacy /post/index.xml endpoint.

Fixes intermittent `uninitialized constant LegacyController::Builder` exceptions.
This commit is contained in:
evazion
2019-08-12 19:20:33 -05:00
parent 9b57631046
commit 601e58d5c5
3 changed files with 3 additions and 1 deletions

View File

@@ -7,7 +7,7 @@ class LegacyController < ApplicationController
respond_with(@posts) do |format|
format.xml do
xml = Builder::XmlMarkup.new(indent: 2)
xml = ::Builder::XmlMarkup.new(indent: 2)
xml.instruct!
xml.posts do
@posts.each { |attrs| xml.post(attrs) }