change styling towards design rj
This commit is contained in:
@@ -38,7 +38,7 @@ module RQRCode
|
||||
result.unshift %{<rect width="#{dimension}" height="#{dimension}" x="0" y="0" style="fill:##{options[:fill]}"/>}
|
||||
end
|
||||
|
||||
svg = [xml_tag, open_tag, result, close_tag].flatten.join("\n")
|
||||
return [xml_tag, open_tag, result, close_tag].flatten.join("\n") unless options[:qcontainer]
|
||||
svg = File.read(File.expand_path('../../qr_container.svg', __FILE__))
|
||||
svg.gsub!(/#table_number/, options[:table_number].to_s)
|
||||
svg.gsub!(/#qrcode/, result.join("\n"))
|
||||
|
||||
Reference in New Issue
Block a user