1,310 Experience
13 Lessons Completed
0 Questions Solved


While this may be obvious, but the serialize method can take 2 types of argument - a class (like Array) or a coder (as coder: CoderClass).

For a custom class coder option is necessary. Additionally, the coder Class needs to be added to Rails.application.config.active_record.yaml_column_permitted_classes during the initialization, unless Rails.application.config.active_record.use_yaml_unsafe_load is used (which is not ideal.)

Screencast tutorials to help you learn Ruby on Rails, Javascript, Hotwire, Turbo, Stimulus.js, PostgreSQL, MySQL, Ubuntu, and more.

© 2024 GoRails, LLC. All rights reserved.