Class: Dorsale::ApplicationRecord

Inherits:
ActiveRecord::Base
  • Object
show all
Includes:
Agilibox::ActiveRecordUUIDConcern, Agilibox::DefaultValuesConcern, Agilibox::ModelI18n, Agilibox::ModelToS, Agilibox::PolymorphicId
Defined in:
app/models/dorsale/application_record.rb

Class Method Summary collapse

Class Method Details

.last_createdObject



12
13
14
# File 'app/models/dorsale/application_record.rb', line 12

def self.last_created
  reorder(:created_at, :id).last
end