module ActivePeriod::HasMany::Holidays

@author Lucas Billaudot <billau_l@modulotech.fr> @note when include this module provide access to the holidays of the FreePeriod

Public Instance Methods

holidays(*args, &block) click to toggle source
# File lib/active_period/has_many/holidays.rb, line 9
def holidays(*args, &block)
  raise I18n.t(:gem_require, scope: %i[active_period holiday_period]) unless Object.const_defined?('Holidays')
  ActivePeriod::Collection::HolidayPeriod.new(ActivePeriod::Holiday, self, *args, &block)
end