Replies: 1 comment 7 replies
-
Adding arguments to the method (even optional arguments) cannot done without breaking backwards compatibility. We could consider adding a method to specify the color to use, so you only need to override that method to change the color. |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there,
Is it a crazy idea to allow for the passing in of parameters to a delegated method:
https://github.com/jeremyevans/rodauth/blob/master/lib/rodauth/features/otp.rb#L310-L313
Context: Dark Mode
I wish to change the fill / colors of the QR code, for users who are using Dark Mode.
Current Solution
Is to just re-implement the method in the view, and pass in what I need to.
<%== RQRCode::QRCode.new(rodauth.otp_provisioning_uri).as_svg(:module_size=>8, :viewbox=>true, :use_path=>true, color: "ffffff") %>
Beta Was this translation helpful? Give feedback.
All reactions