Sha256: 8c34a9119d321c08eea488caf7a52e1668611415ebbdb7681e7f218a9c70e854
Contents?: true
Size: 748 Bytes
Versions: 5
Compression:
Stored size: 748 Bytes
Contents
module Users class RegistrationsController < Devise::RegistrationsController # POST /resource before_action do authorize User end def create build_resource(sign_up_params) resource.save yield resource if block_given? if resource.persisted? expire_data_after_sign_in! render_message else clean_up_passwords resource set_minimum_password_length respond_with resource end end def render_message msg = <<~HTML <div class="alert alert-info mt-4"> #{I18n.t 'devise.registrations.signed_up_but_unconfirmed'} </div> HTML render turbo_stream: turbo_stream.update('form-signup', msg) end end end
Version data entries
5 entries across 5 versions & 1 rubygems