You said you were calling it from bed
- as in bed.apartment.checkin
?
If that is true, that is your problem: you only set checkin
on the Apartment instance saved in the instance variable @apartment
. That one is not identical with the instance you receive through bed.apartment.checkin
.