mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-03-23 13:26:22 -04:00
EXTENSIBILITY: add point for topic loading
This commit is contained in:
parent
b4c568b301
commit
05d343a921
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue