mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
EXTENSIBILITY: add point for topic loading
This commit is contained in:
parent
b4c568b301
commit
05d343a921
@ -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 New Issue
Block a user