Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add top level & method documentation into Devise::Passkeys::Model #12

Merged
merged 5 commits into from
Jun 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .yardopts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--markup markdown
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
- https://github.com/ruby-passkeys/devise-passkeys/pull/7/
- Bump `Devise` requirement to `>= 4.7.1`
- https://github.com/ruby-passkeys/devise-passkeys/pull/11
- Document `Devise::Passkeys::Model`
- https://github.com/ruby-passkeys/devise-passkeys/pull/12

## [0.1.0] - 2023-05-07

Expand Down
1 change: 1 addition & 0 deletions THANKS.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@
- [@heliocola](https://github.com/heliocola)
- [@johalloran01](https://github.com/johalloran01)
- [@tcannonfodder](https://github.com/tcannonfodder)
- [@Vagab](https://github.com/Vagab)
6 changes: 6 additions & 0 deletions lib/devise/passkeys/model.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,13 @@

module Devise
module Models
# This is the actual module that gets included in your
# model when you include `:passkey_authenticatable` in the
# `devise` call (eg: `devise :passkey_authenticatable, ...`).
module PasskeyAuthenticatable
# This is a callback that is called right after a successful passkey authentication.
#
# By default, it is a no-op, but you can override it in your model for any custom behavior (such as notifying users of a new login).
def after_passkey_authentication; end
end
end
Expand Down