sign_up: display procedure context if available

This commit is contained in:
Pierre de La Morinerie 2019-01-14 15:26:53 +00:00
parent 4fd9fa6610
commit ae763d93f3
5 changed files with 34 additions and 16 deletions

View file

@ -1,10 +1,9 @@
class Users::RegistrationsController < Devise::RegistrationsController
include ProcedureContextConcern
# before_action :configure_sign_up_params, only: [:create]
# before_action :configure_account_update_params, only: [:update]
# def after_sign_up_path_for(resource_or_scope)
# super
# end
before_action :restore_procedure_context, only: [:new, :create]
layout 'procedure_context', only: [:new, :create]