class Pagy::Calendar::Unit

def active_period

Period of the active page (used internally for nested units)
def active_period
  [[@starting, @from].max, [@to - 1, @ending].min] # -1 sec: include only last unit day
end