0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-09 21:45:25 +08:00
discourse/plugins/automation/app/serializers/discourse_automation/trigger_serializer.rb
Jarek Radosz 09d07fc418
DEV: Enable Style/RedundantParentheses rubocop rule (#40095)
(to be enabled in the shared config)
2026-05-19 15:48:09 +02:00

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