-
-
Notifications
You must be signed in to change notification settings - Fork 592
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
Make Candidates#each iterable without block. #651
Conversation
Oh, I like this! We'll need tests (please ❤️) to ensure that the functionality works like you say it does now and in the future, though. :) |
Ok, no problem |
3 similar comments
@parndt, updated |
@norman over to you. FYI, CI is (and was before this patch) failing due to ActiveRecord 4.2 + postgresql + jruby.. I had a very similar / the same thing happen in awesome_nested_set (commit), though I'm not exactly sure why it fails here. Here's the awesome_nested_set job |
…date Make Candidates#each iterable without block.
Merged, thanks! |
This is now out in 5.2.0.beta.1. No timetable for stable release yet, but probably within a couple weeks. |
Hi
The mean aim of this commit is to provide access to generated slug candidates without direct AR manipulations
So, it seems reasonable for me to use this syntax instead of calling #save. It can be written to return Enumerator instead of array, but it will be not so readable and will complicate method.