Module: DeviseOtpAuthenticatable::Controllers::UrlHelpers
- Included in:
- Hooks::Sessions
- Defined in:
- lib/devise_otp_authenticatable/controllers/url_helpers.rb
Instance Method Summary collapse
- #otp_credential_path_for(resource_or_scope, opts = {}) ⇒ Object
- #otp_token_path_for(resource_or_scope, opts = {}) ⇒ Object
- #persistence_otp_token_path_for(resource_or_scope, opts = {}) ⇒ Object
- #recovery_otp_token_for(resource_or_scope, opts = {}) ⇒ Object
- #refresh_otp_credential_path_for(resource_or_scope, opts = {}) ⇒ Object
Instance Method Details
#otp_credential_path_for(resource_or_scope, opts = {}) ⇒ Object
26 27 28 29 |
# File 'lib/devise_otp_authenticatable/controllers/url_helpers.rb', line 26 def otp_credential_path_for(resource_or_scope, opts = {}) scope = Devise::Mapping.find_scope!(resource_or_scope) send("#{scope}_otp_credential_path", opts) end |
#otp_token_path_for(resource_or_scope, opts = {}) ⇒ Object
21 22 23 24 |
# File 'lib/devise_otp_authenticatable/controllers/url_helpers.rb', line 21 def otp_token_path_for(resource_or_scope, opts = {}) scope = Devise::Mapping.find_scope!(resource_or_scope) send("#{scope}_otp_token_path", opts) end |
#persistence_otp_token_path_for(resource_or_scope, opts = {}) ⇒ Object
16 17 18 19 |
# File 'lib/devise_otp_authenticatable/controllers/url_helpers.rb', line 16 def persistence_otp_token_path_for(resource_or_scope, opts = {}) scope = Devise::Mapping.find_scope!(resource_or_scope) send("persistence_#{scope}_otp_token_path", opts) end |
#recovery_otp_token_for(resource_or_scope, opts = {}) ⇒ Object
6 7 8 9 |
# File 'lib/devise_otp_authenticatable/controllers/url_helpers.rb', line 6 def recovery_otp_token_for(resource_or_scope, opts = {}) scope = Devise::Mapping.find_scope!(resource_or_scope) send("recovery_#{scope}_otp_token_path", opts) end |
#refresh_otp_credential_path_for(resource_or_scope, opts = {}) ⇒ Object
11 12 13 14 |
# File 'lib/devise_otp_authenticatable/controllers/url_helpers.rb', line 11 def refresh_otp_credential_path_for(resource_or_scope, opts = {}) scope = Devise::Mapping.find_scope!(resource_or_scope) send("refresh_#{scope}_otp_credential_path", opts) end |