We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Once we have typecasting, we should support array as a type:
class Post < YamlRecord::Base property :names, Array property :user_ids, Array[Integer] end
and that should allow:
p = Post.new p.names = ["Bob", "Jane"] p.user_ids = [1,2,3,4,5] p.save
to
--- names: ["Bob", "Jane"] user_id: [1,2,3,4,5]
but also support lists in string form:
p = Post.new p.names = "Bob, Jane" p.user_ids = "1, 2, 3, 4, 5" p.save p.names # => ["Bob", "Jane"] p.user_ids # => [1,2,3,4,5]
The text was updated successfully, but these errors were encountered:
Seems to be working here: https://github.com/Nico-Taing/yaml_record/commits/virtus_redux
Sorry, something went wrong.
nicotaing
No branches or pull requests
Once we have typecasting, we should support array as a type:
and that should allow:
to
but also support lists in string form:
The text was updated successfully, but these errors were encountered: