module DeviseTwoFactorable::Controllers::UrlHelpers

Public Instance Methods

credential_path_for(resource_or_scope, opts = {}) click to toggle source
# File lib/devise_two_factorable/controllers/url_helpers.rb, line 24
def credential_path_for(resource_or_scope, opts = {})
  scope = Devise::Mapping.find_scope!(resource_or_scope)
  send("#{scope}_credential_path", opts)
end
persistence_token_path_for(resource_or_scope, opts = {}) click to toggle source
# File lib/devise_two_factorable/controllers/url_helpers.rb, line 14
def persistence_token_path_for(resource_or_scope, opts = {})
  scope = Devise::Mapping.find_scope!(resource_or_scope)
  send("persistence_#{scope}_token_path", opts)
end
recovery_token_for(resource_or_scope, opts = {}) click to toggle source
# File lib/devise_two_factorable/controllers/url_helpers.rb, line 4
def recovery_token_for(resource_or_scope, opts = {})
  scope = Devise::Mapping.find_scope!(resource_or_scope)
  send("recovery_#{scope}_token_path", opts)
end
refresh_credential_path_for(resource_or_scope, opts = {}) click to toggle source
# File lib/devise_two_factorable/controllers/url_helpers.rb, line 9
def refresh_credential_path_for(resource_or_scope, opts = {})
  scope = Devise::Mapping.find_scope!(resource_or_scope)
  send("refresh_#{scope}_credential_path", opts)
end
token_path_for(resource_or_scope, opts = {}) click to toggle source
# File lib/devise_two_factorable/controllers/url_helpers.rb, line 19
def token_path_for(resource_or_scope, opts = {})
  scope = Devise::Mapping.find_scope!(resource_or_scope)
  send("#{scope}_token_path", opts)
end