Module: Kiqr::Frontend::ViewHelpers
- Defined in:
- lib/kiqr/frontend/view_helpers.rb
Instance Method Summary collapse
-
#render_qr_code(content) ⇒ Object
Generate a QR code for the given text.
Instance Method Details
#render_qr_code(content) ⇒ Object
Generate a QR code for the given text. This is used to generate a QR code for the user’s two factor authentication app.
6 7 8 9 10 |
# File 'lib/kiqr/frontend/view_helpers.rb', line 6 def render_qr_code(content) RQRCode::QRCode.new(content).as_svg( module_size: 4 ).html_safe end |