Fix for serialization bug in CampaignGiftOption
This commit is contained in:
parent
52817d29b9
commit
a7244f97ec
1 changed files with 4 additions and 1 deletions
|
@ -85,7 +85,10 @@ class CampaignGiftOption < ApplicationRecord
|
|||
json.currency desc[:amount][:currency]
|
||||
json.value_in_cents desc[:amount][:value_in_cents]
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue