EXTENSIBILITY: add point for topic loading

This commit is contained in:
Sam 2015-06-15 16:25:36 +10:00
parent b4c568b301
commit 05d343a921

View file

@ -30,8 +30,10 @@ class TopicList
# Lazy initialization
def topics
return @topics if @topics.present?
@topics ||= load_topics
end
def load_topics
@topics = @topics_input
# Attach some data for serialization to each topic