mirror of
https://ghfast.top/https://github.com/discourse/discourse-solved.git
synced 2026-07-16 11:47:13 +08:00
This commit autoloads plugin files, and also extracts features into their own modules. - `plugin.rb` is smaller - external plugins like discourse-automation and discourse-assign have their own entrypoints - solved filters as well
11 lines
183 B
Ruby
11 lines
183 B
Ruby
# frozen_string_literal: true
|
|
|
|
module DiscourseSolved::PostSerializerExtension
|
|
extend ActiveSupport::Concern
|
|
|
|
private
|
|
|
|
def topic
|
|
topic_view&.topic || object.topic
|
|
end
|
|
end
|