```ruby
require "action_controller"
require 'rqrcode'
require 'rqrcode_rails3/renderers/svg.rb'

module RQRCode
  Mime::Type.register "image/svg+xml", :svg
  Mime::Type.register "image/png",     :png
  
  ActionController::Renderers.add :qrcode do |string, options|
    format = self.request.format.symbol
    
    qrcode = RQRCode::QRCode.new(string)
    svg    = RQRCode::Renderers::SVG::render(qrcode)
    
    data = \
    if format == :png
      image = MiniMagick::Image.read(svg) { |i| i.format "svg" }
      image.format "png"
      png = image.to_blob
    else
      svg
    end
    
    self.response_body = render_to_string(:text => data, :template => nil)
  end
end```

Use consistent quotes around strings
user
```ruby
require 'action_controller'
require 'rqrcode'
require 'rqrcode_rails3/renderers/svg.rb'

module RQRCode
  Mime::Type.register "image/svg+xml", :svg
  Mime::Type.register "image/png",     :png
  
  ActionController::Renderers.add :qrcode do |string, options|
    format = self.request.format.symbol
    
    qrcode = RQRCode::QRCode.new(string)
    svg    = RQRCode::Renderers::SVG::render(qrcode)
    
    data = \
    if format == :png
      image = MiniMagick::Image.read(svg) { |i| i.format "svg" }
      image.format "png"
      png = image.to_blob
    else
      svg
    end
    
    self.response_body = render_to_string(:text => data, :template => nil)
  end
end```
assistant