This repository has been archived on 2021-11-24. You can view files and clone it, but cannot push or open issues or pull requests.
phone_app/app/controllers/admin/qi_helps_controller.rb
2021-08-23 10:26:02 +02:00

23 lines
304 B
Ruby

# -*- encoding : utf-8 -*-
class Admin::QiHelpsController < ApplicationController
before_action :auth_admin
layout "admin"
def update
if params[:enabled]
session[:qi_helps] = true
else
session[:qi_helps] = false
end
redirect_back(fallback_location: "/admin")
end
end