mirror of
https://github.com/discourse/discourse.git
synced 2026-08-09 21:45:25 +08:00
11 lines
266 B
Ruby
Vendored
11 lines
266 B
Ruby
Vendored
# 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
|