Skip to content

Instantly share code, notes, and snippets.

@bplexico
Created July 15, 2013 21:29
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/6003669 to your computer and use it in GitHub Desktop.
Save bplexico/6003669 to your computer and use it in GitHub Desktop.
create new uncategorized category object
def add_uncategorized
# Support for uncategorized topics
uncategorized_topics = Topic.uncategorized_topics
if uncategorized_topics.present?
uncategorized = UncategorizedCategory.new(uncategorized_topics)
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment