Closed malkomalko closed 11 years ago
why did it save Listing as RBListing? That seems to be the problem.
class Listing < NanoStore::Model
.... my attributes
end
Listing.bare_class_name => "Listing" Listing.store.objectsOfClassNamed(Listing.bare_class_name) => []
Listing.store.objectsOfClassNamed("RBListing") => [#Listing:0xc553e00]
I guess it has some name conflicts, somewhere else in rubymotion use the name Listing.
Can you try namespace the Listing class and try again?
namespaced to Models::Listing and it's doing the same thing. I changed it to Property and it worked fine, but it's very interesting.
can you send me a test case? I have tried to reproduce the error but no luck: 70633e3
closing this until we got update.
I have a few different models and for some reason my Listing model will not return anything when I do a Listing.all.
Listing.count shows 0.
However if I look in the db file, it looks like the RBListing is there fine with all the values.