Class: Peoplefinder::SessionsController
Instance Method Summary
collapse
#feature_disabled?, #feature_enabled?
Instance Method Details
#create ⇒ Object
5
6
7
8
9
10
11
12
13
|
# File 'app/controllers/peoplefinder/sessions_controller.rb', line 5
def create
person = Person.from_auth_hash(auth_hash)
if person
session['current_user_id'] = person.id
redirect_to_desired_path
else
render :failed
end
end
|
#destroy ⇒ Object
18
19
20
21
|
# File 'app/controllers/peoplefinder/sessions_controller.rb', line 18
def destroy
session['current_user_id'] = nil
redirect_to '/'
end
|
#new ⇒ Object
15
16
|
# File 'app/controllers/peoplefinder/sessions_controller.rb', line 15
def new
end
|