Sha256: 2648c45f754d83001b9033bcf67f32d7fde08940f0dae744251d35a9122d2f22

Contents?: true

Size: 583 Bytes

Versions: 7

Compression:

Stored size: 583 Bytes

Contents

module Nyauth
  class ConfirmationsController < ApplicationController
    include Nyauth::ApplicationConcern
    include Nyauth::ClientConcern
    allow_everyone
    self.responder = ConfirmationResponder
    respond_to :html, :json
    before_action :set_client

    def update
      @client.confirm
      respond_with(@client, location: Nyauth.configuration.redirect_path_after_update_confirmation.call(client_name) || main_app.root_path)
    end

    private

    def set_client
      @client = client_class.find_by!(confirmation_key: params[:confirmation_key])
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
nyauth-0.2.8 app/controllers/nyauth/confirmations_controller.rb
nyauth-0.2.7 app/controllers/nyauth/confirmations_controller.rb
nyauth-0.2.6 app/controllers/nyauth/confirmations_controller.rb
nyauth-0.2.5 app/controllers/nyauth/confirmations_controller.rb
nyauth-0.2.4 app/controllers/nyauth/confirmations_controller.rb
nyauth-0.2.3 app/controllers/nyauth/confirmations_controller.rb
nyauth-0.2.2 app/controllers/nyauth/confirmations_controller.rb