Add trips

This commit is contained in:
2023-05-09 21:51:44 +10:00
parent ebdf051b82
commit 7988ffc76d
37 changed files with 651 additions and 2 deletions

View File

@@ -46,6 +46,12 @@ module Admin
def archive(id:)
posts.where(id: id).update(published_at: nil)
end
def created_between(start_date, end_date)
posts
.combine(:trips)
.published_between(start_date, end_date)
end
end
end
end