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: marketplaces_controller.rb
    path of file: ./repos/convene/app/furniture/marketplace
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

class Marketplace
  class MarketplacesController < Controller
    def show
      authorize(marketplace)
    end

    def edit
      authorize(marketplace)
    end

  
    
    def update
      if authorize(marketplace).update(marketplace_params)
        redirect_to marketplace.location(child: :notification_methods), notice: t(".success", name: marketplace.room.name)

        if marketplace_params[:square_access_token] || marketplace_params[:square_location_id]
          flash.notice = "Square notification settings updated succesfully!"
        end