Skip to content
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

Allow passing a string to specific Faker::Date methods. #2029

Merged
merged 1 commit into from
Jun 2, 2020

Conversation

connorshea
Copy link
Member

Faker::Date.between(from: 'January 1, 2014', to: 'December 31, 2014') is valid because it coerces a string into a date, so we should allow this. (I'd prefer not to use the duck-typing syntax here since it'd be a mess)

@connorshea connorshea requested a review from Zeragamba May 31, 2020 20:54
@koic koic merged commit a38417a into faker-ruby:master Jun 2, 2020
@koic
Copy link
Member

koic commented Jun 2, 2020

Thanks!

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants