forked from bofh/fetsite
meeting fixes
This commit is contained in:
@@ -6,9 +6,9 @@ class MeetingsController < ApplicationController
|
||||
unless parent.nil?
|
||||
#authorize! :show, parent
|
||||
if params[:filter]=="upcomming"
|
||||
@meetings=parent.meetings.includes(:calentry).where("calentries.start>?",1.hour.ago)
|
||||
@meetings=parent.meetings.upcomming
|
||||
else
|
||||
@meetings=parent.meetings
|
||||
@meetings=parent.meetings
|
||||
end
|
||||
@parent=parent
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user