Only show published trips
This commit is contained in:
@@ -12,6 +12,10 @@ module Adamantium
|
||||
end
|
||||
|
||||
auto_struct(true)
|
||||
|
||||
def published
|
||||
where(self[:start_date] <= Time.now)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user