2013-01-07 09:04:09 +01:00
|
|
|
class Admin::PeopleController < ApplicationController
|
|
|
|
|
before_filter :verify_organizer
|
|
|
|
|
layout "admin"
|
|
|
|
|
|
|
|
|
|
def index
|
|
|
|
|
@people = Person.all
|
2013-06-14 13:17:40 +02:00
|
|
|
mails = []
|
|
|
|
|
@people.each do |p|
|
|
|
|
|
if p.registrations.count < 1 and p.confirmed?
|
|
|
|
|
mails << p.email
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
respond_to do |format|
|
|
|
|
|
format.html
|
|
|
|
|
format.text { render :text => mails }
|
|
|
|
|
end
|
2013-01-07 09:04:09 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
|
|
def create
|
|
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
def show
|
|
|
|
|
@person = Person.find(params[:id])
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
def update
|
|
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
def delete
|
|
|
|
|
|
|
|
|
|
end
|
|
|
|
|
end
|