Couch Rest Model Doubt

Hello G.s,

I am using couch-rest model gem and below is my snippet code.

class S
include CouchRest::Model::Embeddable
property :s1, String
property :s2, String

class P < CouchRest::Model::Base
property :name, String
property :xx, [S]

p.xx << “S1 EXISTS”)
p.xx << “S2 EXISTS”)

Now my doubt is when i do “null” get stored in the couchdb, which
I dont want. If i don’t use array, then null gets auto deleted , I want
the same feature for the array as well.

Can you please suggest something?

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs