class CommunityController < ApplicationController
  actions_without_auth :user_leaderboards, :organization_leaderboards

  def user_leaderboards
    data = Rails.cache.fetch('community_user_leaderboards', expires_in: 10.minutes) do
      leaderboard = Leaderboard::UserLeaderboard.new(UserPresenter)
      leaderboard.get
    end
    render json: data
  end

  def organization_leaderboards
    data = Rails.cache.fetch('community_organization_leaderboards', expires_in: 10.minutes) do
      leaderboard = Leaderboard::OrganizationLeaderboard.new(OrganizationDetailPresenter)
      leaderboard.get
    end
    render json: data
  end
end

class CommunityController < ApplicationController
  actions_without_auth :user_leaderboards, :organization_leaderboards

  def user_leaderboards
    data = Rails.cache.fetch('community_user_leaderboards', expires_in: 10.minutes) do
      leaderboard = Leaderboard::UserLeaderboard.new(UserPresenter)
      leaderboard.get
    end
    render json: data
  end

  def organization_leaderboards
    data = Rails.cache.fetch('community_organization_leaderboards', expires_in: 10.minutes) do
      leaderboard = Leaderboard::OrganizationLeaderboard.new(OrganizationIndexPresenter)
      leaderboard.get
    end
    render json: data
  end
end

Use OrganizationIndexPresenter instead of OrganizationDetailPresenter
Use OrganizationIndexPresenter instead of OrganizationDetailPresenter
