neocities/app/activity.rb
2015-03-06 15:29:52 -05:00

16 lines
373 B
Ruby

get '/activity' do
#expires 7200, :public, :must_revalidate if self.class.production? # 2 hours
params[:activity] = 'global' # FIXME this is a bad hack
global_dataset = Event.global_dataset
if params[:event_id]
global_dataset.where! Sequel.qualify(:events, :id) => params[:event_id]
end
binding.pry
@events = global_dataset.all
erb :'activity'
end