Created
July 15, 2013 21:21
-
-
Save bplexico/6003626 to your computer and use it in GitHub Desktop.
new UncategorizedCategory class
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment