Closed adambedford closed 3 years ago
"day\":[1,5,3],\"on\":[\"monday\",\"friday\",\"wednesday\"]}"
Why are you using day
and on
together? Maybe that's the issue?
@adambedford How are you rendering the json for the API response?
Thanks for your question. I'm not able to reproduce this issue. If you can provide steps to repro, we can reopen.
I'm running into an issue when rendering a model with a serialized Recurrence (via
serialize :schedule, Montrose::Recurrence
)The error is:
Has anyone run into this sort of thing before? Actually doing
model.to_json
in the console works just fine...it's only when rendering the JSON for our API response. I've also tried coercing into an array and usingMontrose::Schedule
, which also didn't work, so it might be a data issue.The raw value in the DB for the
schedule
field is:Any pointers would be greatly appreciated!