Skip to content

Instantly share code, notes, and snippets.

@bplexico
Created July 15, 2013 20:48
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/6003331 to your computer and use it in GitHub Desktop.
Save bplexico/6003331 to your computer and use it in GitHub Desktop.
add get_uncategorized_category
uncategorized = get_uncategorized_category
def get_uncategorized_category
Category.new({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(totals))
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment