diff options
| author | mo khan <mo@mokhan.ca> | 2016-04-29 21:46:56 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2016-04-29 21:46:56 -0600 |
| commit | df10c5e2b97351e97fcf15d44afebc72ad46e6dd (patch) | |
| tree | 8af0fe84a5ab0ff534373e1bdc43ac009dcbd0c6 /app/controllers/application_controller.rb | |
| parent | e1abd548e1c4e55ae576e975b77c166482c60edf (diff) | |
expose current_user as helper.
Diffstat (limited to 'app/controllers/application_controller.rb')
| -rw-r--r-- | app/controllers/application_controller.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 8c30104..2f2aef8 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -4,6 +4,7 @@ class ApplicationController < ActionController::Base protect_from_forgery with: :exception before_action :authenticate! rescue_from ActiveRecord::RecordNotFound, with: :record_not_found + helper_method :current_user protected |
