rossta / montrose

Recurring events library for Ruby. Enumerable recurrence objects and convenient chainable interface.
https://rossta.net/montrose/
MIT License
843 stars 53 forks source link

cannot be serialized in json in Rails #127

Closed terrorgeek closed 4 years ago

terrorgeek commented 4 years ago

I believe it doesn't support JSON. Hopefully can support it in teh futurre

rossta commented 4 years ago

I don't understand the issue. Could you please describe how to reproduce the problem you're having?

Recurrence objects are intended to support Rails ActiveRecord-style serialization and the format does happen to be JSON: https://github.com/rossta/montrose/blob/d56d2d94c1f87e14ab225ba50bb8c0494c5d2fed/lib/montrose/recurrence.rb#L243