Project

General

Profile

Patch #24323 » builders.rb.patch

Pavel Rosický, 2016-11-11 11:06

View differences:

builders.rb (working copy)
22 22
  module Views
23 23
    module Builders
24 24
      def self.for(format, request, response, &block)
25
        format ||= request.format.symbol.to_s unless request.nil?
25 26
        builder = case format
26 27
          when 'xml',  :xml;  Builders::Xml.new(request, response)
27 28
          when 'json', :json; Builders::Json.new(request, response)
(2-2/2)