rqrcode-rails3
rqrcode-rails3 copied to clipboard
RQRCode.render_qrcode raises NoMethodError
The RQRcode library has been updated to 1.1.1. Since the gemspec for rqrcode-rails3 is set to s.add_dependency 'rqrcode', '>= 0.4.2'
it automatically upgrades rqrcode
to the latest version on bundle update
.
This breaks the RQRCode.render_qrcode
function:
NoMethodError: undefined method 'module_count' for #<RQRCode::QRCode:0x000055ce23fb6958>
FYI you can now just call RQRCode::QRCode.new(code).as_svg
I tried to put a pull request in to fix this, but was blocked. In svg.rb change line 18: dimension = (qrcode.modules.countunit) + (2offset) change line 31: next unless qrcode.modules[c][r]
@samvincent Can you please fix this?