From 03f5e6ba6e23a7d5c748414637a637edfc670a13 Mon Sep 17 00:00:00 2001 From: Carlos Goce Date: Fri, 23 Jan 2015 18:24:52 +0100 Subject: New spec to check array of available days for each month --- lib/carlosgoce/calendar.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/carlosgoce') diff --git a/lib/carlosgoce/calendar.rb b/lib/carlosgoce/calendar.rb index 28ed542..e06b61b 100644 --- a/lib/carlosgoce/calendar.rb +++ b/lib/carlosgoce/calendar.rb @@ -14,7 +14,7 @@ module CarlosGoce Hash.new.tap {|h| (1..12).each do |month| h[month] = Hash.new.tap {|m| - m[:days] = (1...Time.days_in_month(month, @year)).to_a.each_slice(7).to_a + m[:days] = (1..Time.days_in_month(month, @year)).to_a m[:name] = I18n.t('date.month_names')[month].downcase } end -- cgit v1.2.3