def passwordless_for(resource, at: nil, as: nil)
      mount_at = at || resource.to_s
      mount_as = as || resource.to_s
      mount(
        Passwordless::Engine, at: mount_at, as: mount_as,
                              defaults: {authenticatable: resource.to_s.singularize}
      )

      Passwordless.mounted_as = mount_as
    end
def passwordless_for(resource, at: nil, as: nil)
      mount_at = at || resource.to_s
      mount_as = as || resource.to_s
      mount(
        Passwordless::Engine, at: mount_at, as: mount_as,
                              defaults: {authenticatable: resource.to_s.singularize}
      )

      Passwordless.mounted_as = mount_as
    end
Generates passwordless routes for a given Model
   Example usage:
     passwordless_for :users
     # or with options ...
     passwordless_for :users, at: 'session_stuff', as: :user_session_things
 @param resource [Symbol] the pluralized symbol of a Model (e.g - :users).
 @param at [String] Optional - provide custom path for the passwordless
   engine to get mounted at (using the above example your URLs end
   up like: /session_stuff/sign_in). (Default: resource.to_s)
 @param as [Symbol] Optional - provide custom scope for url
   helpers (using the above example in a view:
   <%= link_to 'Sign in', user_session_things.sign_in_path %>).
   (Default: resource.to_s)