class ClustersFinder
  def initialize(project, user, scope)
    @project = project
    @user = user
    @scope = scope
  end

  def execute
    clusters = case @scope
               when :all
                 project.clusters
               when :disabled
                 project.clusters.enabled
               when :enabled
                 project.clusters.disabled
               end
    clusters.map { |cluster| cluster.present(current_user: @user) }
  end
end

class ClustersFinder
  def initialize(project, user, scope)
    @project = project
    @user = user
    @scope = scope
  end

  def execute
    clusters = case @scope
               when :all
                 project.clusters
               when :enabled
                 project.clusters.enabled
               when :disabled
                 project.clusters.disabled
               end
    clusters.map { |cluster| cluster.present(current_user: @user) }
  end
end

Fix mixup with enabled/disabled in ClustersFinder
Fix mixup with enabled/disabled in ClustersFinder
