Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
rrauenza opened this issue Aug 13, 2015 · 5 comments

Comments

@rrauenza
Copy link

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 rrauenza changed the title Rails3 undefined method zero? for nil:NilClass -- statssample override's Rail's Enumerable.sum Rails3 undefined method `zero?' for nil:NilClass -- statssample override's Rail's Enumerable.sum Aug 13, 2015
@einpaule
Copy link

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

@h0jeZvgoxFepBQ2C
Copy link

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

@kinnrot
Copy link

kinnrot commented Jul 26, 2017

+1

@pedrorio
Copy link

pedrorio commented Aug 8, 2017

Any update on this?

@kinnrot
Copy link

kinnrot commented Aug 11, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants