Skip to content

Instantly share code, notes, and snippets.

@bplexico
Created July 15, 2013 20:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bplexico/6003300 to your computer and use it in GitHub Desktop.
Save bplexico/6003300 to your computer and use it in GitHub Desktop.
add_get_uncategorized_topics
uncategorized_topics = get_uncategorized_topics
def get_uncategorized_topics
Topic
.listable_topics
.visible
.where(category_id: nil)
.topic_list_order
.limit(SiteSetting.category_featured_topics)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment