Module: PagesCore::PageModel::DatedPage

Extended by:
ActiveSupport::Concern
Included in:
Page
Defined in:
app/models/concerns/pages_core/page_model/dated_page.rb

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#upcoming?Boolean

Returns:

  • (Boolean)

16
17
18
19
# File 'app/models/concerns/pages_core/page_model/dated_page.rb', line 16

def upcoming?
  return false unless ends_at?
  ends_at > Time.zone.now
end