Class: RoadmapMilestone

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/roadmap_milestone.rb

Class Method Summary collapse

Class Method Details

.during(range) ⇒ Object



24
25
26
# File 'app/models/roadmap_milestone.rb', line 24

def during(range)
  where(arel_table[:start_date].lteq(range.end)).where(arel_table[:end_date].gteq(range.begin))
end

.including_destroyedObject



20
21
22
# File 'app/models/roadmap_milestone.rb', line 20

def including_destroyed
  unscope(where: :destroyed_at)
end