class Lato::AccountController
def update_accepted_terms_and_conditions_version_action
def update_accepted_terms_and_conditions_version_action respond_to do |format| if @session.user.update_accepted_terms_and_conditions_version(params.require(:user).permit(:confirm)) format.html { redirect_to lato.account_path } format.json { render json: @session.user } else format.html { render :index, status: :unprocessable_entity } format.json { render json: @session.user.errors, status: :unprocessable_entity } end end end