statsample icon indicating copy to clipboard operation
statsample copied to clipboard

Rails3 undefined method `zero?' for nil:NilClass -- statssample override's Rail's Enumerable.sum

Open rrauenza opened this issue 9 years ago • 5 comments

This issue

http://stackoverflow.com/questions/8899272/rails-3-undefined-method-zero-for-nilnilclass-in-many-to-many-relationsh http://stackoverflow.com/questions/9289535/rails-3-2-uniqueness-validation-raises-undefined-method-zero-for-nilnilclass

also seems to affect this gem when using this within Rails 3.

Is there a workaround?

rrauenza avatar Aug 13 '15 17:08 rrauenza

The workaround we are using is using a version < 1.5.0, as this is the version this issue was introduced.

einpaule avatar Aug 20 '15 12:08 einpaule

Had the same problem with rails 3.2.22... Really nasty to debug!

h0jeZvgoxFepBQ2C avatar May 14 '16 12:05 h0jeZvgoxFepBQ2C

+1

kinnrot avatar Jul 26 '17 13:07 kinnrot

Any update on this?

pedrorio avatar Aug 08 '17 16:08 pedrorio

I just removed it.. https://github.com/ClusterTV/statsample/

kinnrot avatar Aug 11 '17 09:08 kinnrot