-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
fetch_all raises error #1200
Comments
@kevinburkeomg Give this a shot:
I don't have enough knowledge of the library to know if the syntax you posted above should work (it's certainly a nice way to write things though). It failed on a few other classes I tried, so maybe it's just not supported. I would be happy to work on a PR to fix/add that behavior if that's wanted by the maintainers though. |
@JonathanWThom exactly. You could do:
I personally prefer to use the |
It seems at the very least like the error message could be clearer. |
Wanna work on this improvement? @kevinburkeomg |
I don't think there's anything to work on here... we don't advertise |
Maybe then documenting how to retrieve all of the options for a given function, besides in a comment to a closed issue |
Ok, well, if a PR shows up, we'll review it. :) I'd need to see a compelling argument, though, if a PR encouraged the use of internal functions like |
I'm trying to determine the total number of possible entries for Faker::Name.first_name. Running the following:
yields the following error:
Per #811, I tried
I18n.reload!
, but that had no effect. I also tried hardcoding the locale to en and that did not work either.I'm using Faker 1.7.3 and Ruby 2.4.3, on a Mac. I can provide more debugging information as necessary, but I am not sure what I am looking for.
If there is a different way to compute the total number of possibilities for a value, let me know.
The text was updated successfully, but these errors were encountered: