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-4.3.6 app/controllers/spotlight/confirmations_controller.rb
blacklight-spotlight-4.3.5 app/controllers/spotlight/confirmations_controller.rb
blacklight-spotlight-4.3.4 app/controllers/spotlight/confirmations_controller.rb
blacklight-spotlight-4.3.3 app/controllers/spotlight/confirmations_controller.rb
blacklight-spotlight-4.3.2 app/controllers/spotlight/confirmations_controller.rb
blacklight-spotlight-4.3.1 app/controllers/spotlight/confirmations_controller.rb
blacklight-spotlight-4.3.0 app/controllers/spotlight/confirmations_controller.rb
blacklight-spotlight-4.2.0 app/controllers/spotlight/confirmations_controller.rb
blacklight-spotlight-4.1.2 app/controllers/spotlight/confirmations_controller.rb
blacklight-spotlight-4.1.1 app/controllers/spotlight/confirmations_controller.rb
blacklight-spotlight-4.1.0 app/controllers/spotlight/confirmations_controller.rb
blacklight-spotlight-4.0.3 app/controllers/spotlight/confirmations_controller.rb
blacklight-spotlight-4.0.2 app/controllers/spotlight/confirmations_controller.rb
blacklight-spotlight-4.0.1 app/controllers/spotlight/confirmations_controller.rb
blacklight-spotlight-4.0.0 app/controllers/spotlight/confirmations_controller.rb
blacklight-spotlight-3.6.0.beta10 app/controllers/spotlight/confirmations_controller.rb
blacklight-spotlight-3.6.0.beta9 app/controllers/spotlight/confirmations_controller.rb
blacklight-spotlight-3.6.0.beta8 app/controllers/spotlight/confirmations_controller.rb
blacklight-spotlight-3.5.0.4 app/controllers/spotlight/confirmations_controller.rb
blacklight-spotlight-3.6.0.beta7 app/controllers/spotlight/confirmations_controller.rb