Skip to content
This repository has been archived by the owner on Sep 25, 2020. It is now read-only.

Commit

Permalink
Fix caption
Browse files Browse the repository at this point in the history
This raise an exception when today is day 31 and call has_calendar for february
  • Loading branch information
sobrinho authored and fnando committed Aug 11, 2010
1 parent 9ac4b77 commit c89e0c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/has_calendar.rb
Expand Up @@ -50,7 +50,7 @@ def calendar(options={}, &block)
date = today.beginning_of_week
date = date - 1.day if RUBY_PLATFORM =~ /darwin/

caption = content_tag(:caption, l(Date.new(options[:year], options[:month], today.day), :format => options[:caption_format]))
caption = content_tag(:caption, l(Date.new(options[:year], options[:month]), :format => options[:caption_format]))

head = content_tag(:thead) do
content_tag(:tr) do
Expand Down

0 comments on commit c89e0c7

Please sign in to comment.