module Nyauth::Route

Public Class Methods

new(*args) click to toggle source
Calls superclass method
# File lib/nyauth/route.rb, line 3
def initialize(*args)
  super(*args)
  nyauth_concerns
end

Public Instance Methods

nyauth_concerns() click to toggle source
# File lib/nyauth/route.rb, line 8
def nyauth_concerns
  concern :nyauth_registrable do
    resource :registration, only: %i(new create)
  end
  concern :nyauth_authenticatable do
    resource :session, only: %i(new create destroy)
    resource :password, only: %i(edit update)
    resources :reset_password_requests, only: %i(new create)
    resources :reset_passwords, param: :reset_password_key, only: %i(edit update)
  end
  concern :nyauth_confirmable do
    resources :confirmation_requests, only: %i(new create)
    get '/confirmations/:confirmation_key' => 'confirmations#update', as: :confirmation
  end
end