FIX: apply defaults constraints to routes format (take 2) (#7920)

Reapplies 7d01c5de1a
This commit is contained in:
Osama Sayegh
2019-07-23 20:17:44 +03:00
committed by GitHub
parent 9e0a3b8229
commit 8b5f44a9a7
4 changed files with 59 additions and 47 deletions

View File

@@ -1065,7 +1065,10 @@ class UsersController < ApplicationController
@confirmed = true
end
render layout: 'no_ember'
respond_to do |format|
format.json { render json: success_json }
format.html { render layout: 'no_ember' }
end
end
def list_second_factors