app/controllers/app_settings_controller.rb
def add_admin
    @new_admin = Employee.find(params[:employee][:id])
    @new_admin.site_admin = true
    @new_admin.save
    flash[:notice] = t(:site_admin) + t(:added)
    redirect_to admins_app_settings_path 
  end
# Adds site administrator privilages to an employee
Adds site administrator privilages to an employee
Adds site administrator privilages to an employee
def add_admin
    @new_admin = Employee.find(params[:employee][:id])
    @new_admin.site_admin = true
    @new_admin.save
    flash[:notice] = t(:site_admin) + t(:added)
    redirect_to admins_app_settings_path 
  end
def add_admin @new_admin = Employee . find ( params [ :employee ] [ :id ] ) @new_admin . site_admin = true @new_admin . save flash [ :notice ] = t ( :site_admin ) + t ( :added ) redirect_to admins_app_settings_path end
Adds site administrator privilages to an employee
Adds site administrator privilages to an employee