app/controllers/nyauth/confirmations_controller.rb in nyauth-0.5.0 vs app/controllers/nyauth/confirmations_controller.rb in nyauth-0.6.0
- old
+ new
@@ -1,10 +1,9 @@
module Nyauth
- class ConfirmationsController < ApplicationController
- include Nyauth::ControllerConcern
+ class ConfirmationsController < Nyauth::BaseController
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(nyauth_client_name) || main_app.root_path)