#584 ✓resolved

dm-aggregates return nil value when working with enums

Reported by coryodaniel | October 4th, 2008 @ 03:57 PM | in 1.0.0

I was doing some conditional aggregating based on an enum field.

MyObject.all(:somefield => :great).aggregate(:somefield.count, :somefield, :other_field, :etc)

The result set comes back: [[32,nil,1,2],[322,nil,23,1]]

I know what the field is because I specified it in the #all method, but when it maps back the enum value in the results, it displays 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 »


Referenced by