mirror of
https://github.com/hanzoai/forum.git
synced 2026-09-30 21:51:19 +00:00
Automation (previously known as discourse-automation) is now a core plugin.
12 lines
268 B
Ruby
12 lines
268 B
Ruby
# frozen_string_literal: true
|
|
|
|
module DiscourseAutomation
|
|
class TriggerSerializer < ApplicationSerializer
|
|
attributes :id, :name, :metadata
|
|
|
|
def metadata
|
|
((options[:trigger_metadata] || {}).stringify_keys).merge(object.metadata || {})
|
|
end
|
|
end
|
|
end
|