Skip to content

Commit

Permalink
Properly return an array of dates rather than a range.
Browse files Browse the repository at this point in the history
  • Loading branch information
peregrinator committed Nov 16, 2015
1 parent 1c27a70 commit 71612ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/content.rb
Expand Up @@ -30,7 +30,7 @@ def self.parse_dates(date)
def self.parse_all_dates(date)
if date =~ /^>/
date = Date.parse(date.sub(/^>/, ''))
dates = [date .. Time.current.to_date]
dates = (date .. Time.current.to_date).to_a
elsif date.present?
dates = [date.is_a?(String) ? date : date.to_s(:iso)]
else
Expand Down

0 comments on commit 71612ea

Please sign in to comment.