Closed yensaki closed 6 years ago
When we don't use view_context, but want to use SimpleCalendar, getting troubled that we cannot use #render and cannot access #date_range.
SimpleCalendar
#render
#date_range
We want to use SimpleCalendar::Calendar followings,
SimpleCalendar::Calendar
calendar.date_range.each_slice(7) do |week| # do something ... week.each do |date| # do something ... end end
This PR allow to access #date_range public.
When we don't use view_context, but want to use
SimpleCalendar
, getting troubled that we cannot use#render
and cannot access#date_range
.We want to use
SimpleCalendar::Calendar
followings,This PR allow to access
#date_range
public.