Sha256: c867b1bd164dfb032e5177a8b2df407915b5e207484c2440aed158a0992f0090

Contents?: true

Size: 435 Bytes

Versions: 5

Compression:

Stored size: 435 Bytes

Contents

# frozen_string_literal: true

class User::RegistrationsController < Devise::RegistrationsController
  before_action :authenticate_user!, except: %i[new create]
  before_action :redirect_user, only: %i[destroy]
  add_breadcrumb I18n.t('activerecord.models.user'), :user_root_path

  def edit; end

  private

  def redirect_user
    redirect_to user_root_path
  end

  def after_update_path_for(_resource)
    user_root_path
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
cybele-2.3.2 templates/app_files/app/controllers/user/registrations_controller.rb
cybele-2.3.1 templates/app_files/app/controllers/user/registrations_controller.rb
cybele-2.2.0 templates/app_files/app/controllers/user/registrations_controller.rb
cybele-2.1.0 templates/app_files/app/controllers/user/registrations_controller.rb
cybele-2.0.0 templates/app_files/app/controllers/user/registrations_controller.rb