Skip to content

Commit d3e512a

Browse files
committed
use resource_name instead of resource object
1 parent cc107b4 commit d3e512a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/devise/webauthn/helpers/credentials_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def login_with_passkey_button(text = nil, session_path:, button_classes: nil, fo
2323
method: :post,
2424
class: form_classes
2525
) do |f|
26-
tag.webauthn_get(data: { options_url: passkey_authentication_options_path(resource) }) do
26+
tag.webauthn_get(data: { options_url: passkey_authentication_options_path(resource_name) }) do
2727
concat f.hidden_field(:public_key_credential, data: { webauthn_target: "response" })
2828

2929
concat f.button(text, type: "submit", class: button_classes, &block)

0 commit comments

Comments
 (0)