Initial commit
This commit is contained in:
6
app/models/application_record.rb
Normal file
6
app/models/application_record.rb
Normal file
@@ -0,0 +1,6 @@
|
||||
class ApplicationRecord < ActiveRecord::Base
|
||||
self.abstract_class = true
|
||||
|
||||
scope :order_by_recent, -> { order(created_at: :desc) }
|
||||
scope :order_by_recently_updated, -> { order(updated_at: :desc) }
|
||||
end
|
||||
Reference in New Issue
Block a user