Class: Redmine::Scm::Adapters::Revisions

Inherits:
Array
  • Object
show all
Defined in:
lib/redmine/scm/adapters/abstract_adapter.rb

Instance Method Summary collapse

Methods included from Diffable

#diff, #patch, #replacenextlarger, #reverse_hash

Instance Method Details

#latestObject


357
358
359
360
361
362
363
364
365
# File 'lib/redmine/scm/adapters/abstract_adapter.rb', line 357

def latest
  sort do |x, y|
    unless x.time.nil? or y.time.nil?
      x.time <=> y.time
    else
      0
    end
  end.last
end