GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
class Foo < ActiveRerocd::Base
serialize :posts, Array
foo = Foo.new
foo.posts = "a"
foo.save # It doen't raise an error.
foo.posts # It raises ActiveRecord::SerializationTypeMismatch
It's strange, when you save the data, it doesn't raise any error, but when we get the data, it raises an error.
so, in #dump, we should raise an error, too
ActiveRecord::Coders::YAMLColumn#dump should raise an error
sorry, I've add it now.
Is this ok for merging to master now?
Ya, I think it's fine. Need to rebase these commits though. :-/