Skip to content

Commit

Permalink
Ensure tags are included in ConClar JSON
Browse files Browse the repository at this point in the history
  • Loading branch information
balen committed Jun 4, 2024
1 parent 847a25d commit ae112a5
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion app/serializers/conclar/session_serializer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,13 @@ class Conclar::SessionSerializer < ActiveModel::Serializer
attribute :tags do
res = []

res = session.taggings.select{|t| t.context == 'tags'}.collect(&:tag).collect(&:name)
res = object.taggings.select{|t| t.context == 'tags'}.collect(&:tag).collect{|t|
{
value: "tag_".concat(t.name.gsub(/\s/,'_')),
category: "Tag",
label: t.name
}
}

case object.environment
when 'in_person'
Expand Down

0 comments on commit ae112a5

Please sign in to comment.