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

undefined method `shuffle!' #35

Closed
dtelaroli opened this issue Jan 11, 2017 · 4 comments
Closed

undefined method `shuffle!' #35

dtelaroli opened this issue Jan 11, 2017 · 4 comments

Comments

@dtelaroli
Copy link

dtelaroli commented Jan 11, 2017

I'm using Rails 5

with method random_by_id_shuffle

undefined method `shuffle!' for #Person::ActiveRecord_Relation:0x000000062b3e68 Did you mean? shuffle

@spilliton
Copy link
Owner

Thanks for reporting! Will look into this hopefully sometime this weekend 👍

@spilliton
Copy link
Owner

Code was calling / checking for to_ary instead of to_a. New version shipping shortly :)

@spilliton
Copy link
Owner

@dtelaroli
Copy link
Author

👍

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

2 participants