Sha256: df257de9c08c5fe6e384ee7fef387b2e6fade4ed368b526071cf6f9c7b09555b
Contents?: true
Size: 1.42 KB
Versions: 4
Compression:
Stored size: 1.42 KB
Contents
module DeviseOtpAuthenticatable module Controllers module UrlHelpers 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 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 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 def otp_token_path_for(resource_or_scope, opts = {}) scope = ::Devise::Mapping.find_scope!(resource_or_scope) send("#{scope}_otp_token_path", opts) end def edit_otp_token_path_for(resource_or_scope, opts = {}) scope = ::Devise::Mapping.find_scope!(resource_or_scope) send("edit_#{scope}_otp_token_path", opts) end def reset_otp_token_path_for(resource_or_scope, opts = {}) scope = ::Devise::Mapping.find_scope!(resource_or_scope) send("reset_#{scope}_otp_token_path", opts) end def otp_credential_path_for(resource_or_scope, opts = {}) scope = ::Devise::Mapping.find_scope!(resource_or_scope) send("#{scope}_otp_credential_path", opts) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems