-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Description
Not got time to dig into this one but after an update to Ruby 2.0.0-p0, calls like:
@image.views.last_days(7).sumThrows Mongoid::Tracking::ReaderExtender can't be coerced into Fixnum.
@image.views.last_days(7).map{|v|v.to_f}.sum.to_iWorks as a hacky workaround - #to_i in the map function or #total both fail, to_f seems to work.
Metadata
Metadata
Assignees
Labels
No labels