Sha256: bdf052fd2a4ac05307d96652183fb69a9948554969d7227bdb31a0258c754ae6
Contents?: true
Size: 343 Bytes
Versions: 5
Compression:
Stored size: 343 Bytes
Contents
module SimpleCalendar class MonthCalendar < SimpleCalendar::Calendar def date_range (start_date.beginning_of_month.beginning_of_week..start_date.end_of_month.end_of_week).to_a end def url_for_previous_view view_context.url_for(@params.merge(start_date_param => (date_range.first - 1.day).iso8601)) end end end
Version data entries
5 entries across 5 versions & 1 rubygems