Fix exception in legacy /post/index.xml endpoint.
Fixes intermittent `uninitialized constant LegacyController::Builder` exceptions.
This commit is contained in:
@@ -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) }
|
||||
|
||||
Reference in New Issue
Block a user