Sha256: c91b629c77a7b297831b825c9766c5a5261ac59f27e867866c9d9e00d558b4e7

Contents?: true

Size: 341 Bytes

Versions: 1

Compression:

Stored size: 341 Bytes

Contents

module Kiqr
  module Frontend
    module ViewHelpers
      # Generate a QR code for the given text.
      # This is used to generate a QR code for the user's two factor authentication app.
      def render_qr_code(content)
        RQRCode::QRCode.new(content).as_svg(
          module_size: 4
        ).html_safe
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
kiqr-0.1.0.alpha1 lib/kiqr/frontend/view_helpers.rb