Fix for serialization bug in CampaignGiftOption

This commit is contained in:
Eric Schultz 2021-02-10 14:08:47 -06:00 committed by Eric Schultz
parent 52817d29b9
commit a7244f97ec

View file

@ -85,7 +85,10 @@ class CampaignGiftOption < ApplicationRecord
json.currency desc[:amount][:currency] json.currency desc[:amount][:currency]
json.value_in_cents desc[:amount][:value_in_cents] json.value_in_cents desc[:amount][:value_in_cents]
end end
json.recurrence(desc[:recurrence]) if desc[:recurrence] json.recurrence do
json.interval desc[:recurrence][:interval]
json.type desc[:recurrence][:type]
end if desc[:recurrence]
end end
end end
end end