app/controllers/nyauth/sessions_controller.rb in nyauth-0.2.6 vs app/controllers/nyauth/sessions_controller.rb in nyauth-0.2.7
- old
+ new
@@ -3,9 +3,10 @@
include Nyauth::ApplicationConcern
include Nyauth::ClientConcern
include Nyauth::SessionConcern
before_action -> { require_authentication! as: client_name }
allow_everyone only: [:new, :create]
+ self.responder = Nyauth::AppResponder
respond_to :html, :json
before_action :set_session_service
def new
end