#777 ✓resolved
Betelgeuse

belongs_to comparison method has wrong handling of nils

Reported by Betelgeuse | August 5th, 2010 @ 11:16 AM | in Hobo 1.3 (Rails 3)

(rdb:1) p acting_user.new_record?
true
(rdb:1) p user_id
nil
(rdb:1) p user_is?(acting_user)
true

When user is nil it should only return true when compared against nil.

Comments and changes to this ticket

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.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Pages