Sha256: 71f735f7288192e2e66ec823f809d07780ed88cb494c9aeaa8f58ad8f6849104

Contents?: true

Size: 492 Bytes

Versions: 3

Compression:

Stored size: 492 Bytes

Contents

class Hq::RegistrationsController < Devise::RegistrationsController
  layout 'hq/application'
  before_action :authenticate_admin!
  before_action :redirect_admin, only: [:new, :create, :destroy]
  add_breadcrumb I18n.t('dock.dashboard'), :hq_dashboard_index_path

  def edit
    add_breadcrumb I18n.t('tt.edit', resource_name: Admin.model_name.human)
  end

  private

  def redirect_admin
    redirect_to hq_root_path
  end

  def after_update_path_for(resource)
    hq_root_path
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
cybele-1.9.2 templates/app/controllers/hq/registrations_controller.rb
cybele-1.9.1 templates/app/controllers/hq/registrations_controller.rb
cybele-1.9.0 templates/app/controllers/hq/registrations_controller.rb