This is from the dm-serializer gem correct? On Jan 30, 1:18 am, "Dan Kubb (dkubb)" <[email protected]> wrote: > > property :some_prop, Object > > > model.some_prop = nil > > model.save > > > This stores "BAgw\n" in the field (the Base64'd Marshaled version of > > nil) > > > Then: > > > Model.first :some_prop.not => nil > > > generates the query: WHERE (NOT(`some_prop` IS NULL) > > > However since that field isn't actually NULL, the query skips over > > this record. > > Yeah, I would want NULL to be saved in the DB in this case. As > mentioned in IRC I would certainly accept a patch for this behaviour, > provided it included specs :) > > -- > > Dan
-- You received this message because you are subscribed to the Google Groups "DataMapper" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/datamapper?hl=en.
