app/controllers/nyauth/confirmation_requests_controller.rb in nyauth-0.5.0 vs app/controllers/nyauth/confirmation_requests_controller.rb in nyauth-0.6.0
- old
+ new
@@ -1,10 +1,9 @@
module Nyauth
- class ConfirmationRequestsController < ApplicationController
- include Nyauth::ControllerConcern
+ class ConfirmationRequestsController < Nyauth::BaseController
allow_everyone
self.responder = Nyauth::AppResponder
- respond_to :html, :json
+
before_action :set_service
after_action :send_mail, only: [:create], if: -> { @service.errors.blank? }
def new
end