init push - laying out the project
This commit is contained in:
6
portal/app/models/concerns/latest.rb
Normal file
6
portal/app/models/concerns/latest.rb
Normal file
@ -0,0 +1,6 @@
|
||||
module Latest
|
||||
extend ActiveSupport::Concern
|
||||
included do
|
||||
scope :latest, -> { order(created_at: :desc).first }
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user