Sha256: c02b4ef3a83d4482e2dde40dcf9c67f60991d43334f99d03d69981d607a3af02

Contents?: true

Size: 551 Bytes

Versions: 76

Compression:

Stored size: 551 Bytes

Contents

# frozen_string_literal: true

module Spotlight
  ##
  # Custom {Devise::ConfirmationsController} with spotlight behaviors
  class ConfirmationsController < Devise::ConfirmationsController
    layout 'spotlight/spotlight'

    protected

    def after_confirmation_path_for(_resource_name, resource)
      if signed_in?
        exhibit_root_path(resource.exhibit)
      else
        main_app.new_user_session_path
      end
    end

    def after_resending_confirmation_instructions_path_for(_resource_name)
      main_app.root_path
    end
  end
end

Version data entries

76 entries across 76 versions & 1 rubygems

Version Path
blacklight-spotlight-3.5.0.3 app/controllers/spotlight/confirmations_controller.rb
blacklight-spotlight-3.6.0.beta6 app/controllers/spotlight/confirmations_controller.rb
blacklight-spotlight-3.6.0.beta5 app/controllers/spotlight/confirmations_controller.rb
blacklight-spotlight-3.6.0.beta4 app/controllers/spotlight/confirmations_controller.rb
blacklight-spotlight-3.6.0.beta3 app/controllers/spotlight/confirmations_controller.rb
blacklight-spotlight-3.6.0.beta1 app/controllers/spotlight/confirmations_controller.rb
blacklight-spotlight-3.5.0.2 app/controllers/spotlight/confirmations_controller.rb
blacklight-spotlight-3.5.0.1 app/controllers/spotlight/confirmations_controller.rb
blacklight-spotlight-3.5.0 app/controllers/spotlight/confirmations_controller.rb
blacklight-spotlight-3.4.4.1 app/controllers/spotlight/confirmations_controller.rb
blacklight-spotlight-3.4.4 app/controllers/spotlight/confirmations_controller.rb
blacklight-spotlight-3.4.3 app/controllers/spotlight/confirmations_controller.rb
blacklight-spotlight-3.4.2.2 app/controllers/spotlight/confirmations_controller.rb
blacklight-spotlight-3.4.2.1 app/controllers/spotlight/confirmations_controller.rb
blacklight-spotlight-3.4.2 app/controllers/spotlight/confirmations_controller.rb
blacklight-spotlight-3.4.1 app/controllers/spotlight/confirmations_controller.rb
blacklight-spotlight-3.4.0 app/controllers/spotlight/confirmations_controller.rb
blacklight-spotlight-3.3.0 app/controllers/spotlight/confirmations_controller.rb
blacklight-spotlight-3.2.0 app/controllers/spotlight/confirmations_controller.rb
blacklight-spotlight-3.1.0 app/controllers/spotlight/confirmations_controller.rb