Module: EnjuEvent::EnjuLibrary
- Extended by:
- ActiveSupport::Concern
- Defined in:
- app/models/concerns/enju_event/enju_library.rb
Instance Method Summary collapse
Instance Method Details
#closed?(date) ⇒ Boolean
9 10 11 12 13 |
# File 'app/models/concerns/enju_event/enju_library.rb', line 9 def closed?(date) events.closing_days.map{ |c| c.start_at.beginning_of_day }.include?(date.beginning_of_day) end |