Class: UserPlane::RouteConcerns::EmailIdentity
- Inherits:
-
AbstractNamespacedConcern
- Object
- AbstractConcern
- AbstractNamespacedConcern
- UserPlane::RouteConcerns::EmailIdentity
- Defined in:
- lib/user_plane/route_concerns.rb
Overview
Provides extra routes to manage email identities: password resets and email confirmations
Instance Attribute Summary
Attributes inherited from AbstractConcern
Instance Method Summary collapse
Methods inherited from AbstractNamespacedConcern
Methods inherited from AbstractConcern
#call, #exists?, #initialize, #options
Constructor Details
This class inherits a constructor from UserPlane::RouteConcerns::AbstractConcern
Instance Method Details
#build ⇒ Object
134 135 136 137 138 139 140 141 142 143 144 145 146 |
# File 'lib/user_plane/route_concerns.rb', line 134 def build mapper.scope controller: :reset_passwords do mapper.resources :reset_passwords, (only: [:new, :create], param: :code, as: :send_password_resets) mapper.resources :reset_passwords, (only: [:edit, :update], param: :code) end mapper.get '/confirm_email/:code', (to: 'confirm_email_addresses#update', as: :confirm_email_address) end |