mirror of
https://github.com/discourse/discourse.git
synced 2024-12-12 21:44:31 +08:00
15 lines
344 B
Ruby
15 lines
344 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Chat
|
|
module ReviewableExtension
|
|
extend ActiveSupport::Concern
|
|
|
|
prepended { include TypeMappable }
|
|
|
|
class_methods do
|
|
def sti_class_mapping = { "ReviewableChatMessage" => Chat::ReviewableMessage }
|
|
def polymorphic_class_mapping = { "ChatMessage" => Chat::Message }
|
|
end
|
|
end
|
|
end
|