blob: 5903ce828368073f2aa6763169b877ccbff451f1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
class UsersController < ApplicationController
hobo_user_controller
auto_actions :all, :except => [ :index, :new, :create ]
index_action :ready_recruits
index_action :mentorless_recruits
show_action :questions
def ready_recruits
hobo_index User.recruits_answered_all
end
def mentorless_recruits
hobo_index User.mentorless_recruits
end
def questions
hobo_show do
@user = this
end
end
skip_before_filter :verify_authenticity_token, :only => [:receive_email]
def receive_email
raise Hobo::PermissionDeniedError unless request.remote_ip == '127.0.0.1'
UserMailer.receive(params[:email])
render :text => 'Email Received'
end
end
|