Files
dawarich/app/helpers/user_helper.rb
Eugene Burmakin 71488c9fb1 Add trial mode
2025-08-13 20:25:48 +02:00

18 lines
344 B
Ruby

# frozen_string_literal: true
module UserHelper
def api_key_qr_code(user)
qrcode = RQRCode::QRCode.new(user.api_key)
svg = qrcode.as_svg(
color: "000",
fill: "fff",
shape_rendering: "crispEdges",
module_size: 11,
standalone: true,
use_path: true,
offset: 5
)
svg.html_safe
end
end