From 17678df65a7601cd632b82a20c5a6cf0f395f3ab Mon Sep 17 00:00:00 2001 From: Connor Shea Date: Sun, 31 May 2020 14:52:15 -0600 Subject: [PATCH] Allow passing a string to specific Faker::Date methods. --- lib/faker/default/date.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/faker/default/date.rb b/lib/faker/default/date.rb index f9d7567e84..966ce22d13 100644 --- a/lib/faker/default/date.rb +++ b/lib/faker/default/date.rb @@ -6,8 +6,8 @@ class << self ## # Produce a random date between two dates. # - # @param from [Date] The start of the usable date range. - # @param to [Date] The end of the usable date range. + # @param from [Date, String] The start of the usable date range. + # @param to [Date, String] The end of the usable date range. # @return [Date] # # @example @@ -32,9 +32,9 @@ def between(legacy_from = NOT_GIVEN, legacy_to = NOT_GIVEN, from:, to:) ## # Produce a random date between two dates. # - # @param from [Date] The start of the usable date range. - # @param to [Date] The end of the usable date range. - # @param excepted [Date] A date to exclude. + # @param from [Date, String] The start of the usable date range. + # @param to [Date, String] The end of the usable date range. + # @param excepted [Date, String] A date to exclude. # @return [Date] # # @example