Module: Pagy::CalendarExtra::UrlHelper

Included in:
Backend, Frontend
Defined in:
lib/pagy/extras/calendar.rb

Overview

Additions for the Frontend module

Instance Method Summary collapse

Instance Method Details

#pagy_calendar_url_at(calendar, time, **opts) ⇒ Object

Return the url for the calendar page at time



47
48
49
# File 'lib/pagy/extras/calendar.rb', line 47

def pagy_calendar_url_at(calendar, time, **opts)
  pagy_url_for(calendar.send(:calendar_at, time, **opts), 1, **opts)
end