app/controllers/token_action/tokens_controller.rb
# Returns the routeable URL with the highest preference.
#
# @param [Array<String>] a list of URLs in order of preference
# @return [String] the routable URL with the highest preference
Returns the routeable URL with the highest preference.
Returns the routeable URL with the highest preference .
def redirect_url(urls)
      urls.find do |url|
        url.present? && routable?(url)
      end || main_app.root_path
    end
def redirect_url ( urls ) urls . find do | url | url . present? && routable? ( url ) end || main_app . root_path end
Returns the routeable URL with the highest preference.
Returns the routeable URL with the highest preference .
the routable URL with the highest preference
the routable URL with the highest preference
String
urls
<not_specific>
<not_specific>
a list of URLs in order of preference
a list of URLs in order of preference