improve events
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user