You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: admin_controller.rb
    path of file: ./repos/trado/app/controllers/admin
    
    the code of the file until where you have to start completion: class Admin::AdminController < Admin::AdminBaseController
    before_action :authentica
    
    def update
        set_setting
        if @settings.update(params[:store_setting])
            flash_message :success, t('controllers.admin.admin.update.valid')
            redirect_to admin_root_url
        else
            render action: "settings"
        end