Created
July 15, 2013 20:57
-
-
Save bplexico/6003402 to your computer and use it in GitHub Desktop.
add_categorized with methods extracted
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
def add_uncategorized | |
# Support for uncategorized topics | |
uncategorized_topics = get_uncategorized_topics | |
if uncategorized_topics.present? | |
totals = get_topic_totals | |
uncategorized = get_uncategorized_category | |
# Find the appropriate place to insert it: | |
insert_uncategorized_category(uncategorized) | |
end | |
add_uncategorized_topics(uncategorized_topics) if uncategorized.present? | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment