Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
new UncategorizedCategory class
class UncategorizedCategory < Category
def initialize(uncategorized_topics)
super({name: SiteSetting.uncategorized_name,
slug: Slug.for(SiteSetting.uncategorized_name),
color: SiteSetting.uncategorized_color,
text_color: SiteSetting.uncategorized_text_color,
featured_topics: uncategorized_topics}.merge(Topic.totals))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.