module MagicLink::ViewHelpers

Public Instance Methods

Private Instance Methods

format_to_url(smth) click to toggle source
# File lib/magic_link/view_helpers.rb, line 33
def format_to_url(smth)
  if smth.is_a?(String)
    URL.new(smth).to_url
  else
    smth
  end
end