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: social_medias_controller.rb
    path of file: ./repos/openfoodnetwork/engines/dfc_provider/app/controllers/dfc_provider
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module DfcProvider
  class SocialMediasController < DfcProvider::ApplicationController
    bef
    
    def show
      name = params.require(:id)
      social_media = SocialMediaBuilder.social_media(current_enterprise, name)

      return not_found unless social_media

      render json: DfcIo.export(social_media)
    end