Module: TimeLineable::ClassMethods

Defined in:
app/models/concerns/time_lineable.rb

Instance Method Summary collapse

Instance Method Details

#first_of_allObject


58
59
60
# File 'app/models/concerns/time_lineable.rb', line 58

def first_of_all
  reorder(:started_at).first
end

#last_of_allObject


62
63
64
# File 'app/models/concerns/time_lineable.rb', line 62

def last_of_all
  reorder(:started_at).last
end