We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 05cc9fe commit 45d6ae4Copy full SHA for 45d6ae4
1 file changed
lib/easy/api/block_wrapper.rb
@@ -26,7 +26,7 @@ def initialize(controller)
26
def render_result(render_params)
27
format = (render_params[:format] || 'json').try(:to_sym)
28
formatted_result = if format == :xml
29
- @result(render_params[:options])
+ @result.to_xml(render_params[:options] || {})
30
else
31
@result
32
end
0 commit comments