diff options
| author | mo khan <mo@mokhan.ca> | 2015-01-03 08:40:59 -0700 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2015-01-03 08:40:59 -0700 |
| commit | f80e87be4dcbf7d1a1315880bceef2ac17c8f725 (patch) | |
| tree | 5292c346cc91ea41e8221464b69838ac95f30dec /app/controllers/application_controller.rb | |
| parent | 11ec6f1b35e57d71ae68e24a7574686c10f1b9b7 (diff) | |
happy day scenario user registration.
Diffstat (limited to 'app/controllers/application_controller.rb')
| -rw-r--r-- | app/controllers/application_controller.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index d83690e..6defaea 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -2,4 +2,10 @@ class ApplicationController < ActionController::Base # Prevent CSRF attacks by raising an exception. # For APIs, you may want to use :null_session instead. protect_from_forgery with: :exception + + protected + + def log_in(user) + session[:user_id] = user.id + end end |
