Instatiating Couchrest::Model with nil vars half-succeeds
-
J. Chris A.
- State changed from new to invalid
hmm,
try @var && @var.id
in this instance, all CouchRest knows is that you passed :name => 4 into it.
checking for values of 4 is not gonna work.
--
however: I do have some code around that strips keys out of hashes, when their values are nil... can make for a leaner save...
-
J. Chris A.
but thanks for the ticket! keep em coming.
-
hkstar
Oops. Momentarily confused there due to tiredness. Face, palm, etc.
Sorry for the noise! Will keep 'em coming.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.