unabridged / motion

Reactive frontend UI components for Rails in pure Ruby
https://github.com/unabridged/motion
MIT License
697 stars 19 forks source link

Fix Serializer Calling Private Method #112

Closed bert-mccutchen closed 3 years ago

bert-mccutchen commented 3 years ago

The Serializer class is attempting to call the private method marshal_dump for components. This happens when it is attempting to collect instance variables due to a failing dump.

I don't have the time to write a better fix, so i've just moved the method into public scope.

https://github.com/unabridged/motion/blob/7e1bc4bce9d707f19a22f3231e72957c575e8241/lib/motion/serializer.rb#L68-L77