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: settings_resolver.rb
    path of file: ./repos/foreman/app/graphql/resolvers
    
    the code of the file until where you have to start completion: module Resolvers
  class SettingsResolver < BaseResolver
    type [Types::Setti
    
    def resolve(search: nil)
      return [] unless user&.can?(:view_settings)

      scope = Foreman.settings
      scope = scope.search_for(search) if search
      scope.to_a
    end