Sha256: 8e51d243c1a7055591c24ef317096fa74277c22478b4f5a43c17650e792ee7e0

Contents?: true

Size: 442 Bytes

Versions: 5

Compression:

Stored size: 442 Bytes

Contents

module Spotlight
  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

5 entries across 5 versions & 1 rubygems

Version Path
blacklight-spotlight-0.4.1 app/controllers/spotlight/confirmations_controller.rb
blacklight-spotlight-0.3.1 app/controllers/spotlight/confirmations_controller.rb
blacklight-spotlight-0.3.0 app/controllers/spotlight/confirmations_controller.rb
blacklight-spotlight-0.2.0 app/controllers/spotlight/confirmations_controller.rb
blacklight-spotlight-0.1.0 app/controllers/spotlight/confirmations_controller.rb