improve events

This commit is contained in:
Torsten
2023-06-12 15:47:54 +03:00
parent d2eaacaaad
commit 15ccc5eedb
19 changed files with 100 additions and 49 deletions

View File

@ -16,4 +16,8 @@ class Profile < ApplicationRecord
def Kind
self.kind.capitalize
end
def future_events
self.events.where( "start_date > ?" , Date.today)
end
end