about summary refs log tree commit diff
path: root/app/controllers
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-08-18 17:13:41 +0200
committerEugen Rochko <eugen@zeonfederated.com>2016-08-18 17:22:44 +0200
commit6426819b6f7af0eff516340ca24d7f8af1cc6397 (patch)
tree9c0feba9adc9a603312a5a23c39f1ba08643117d /app/controllers
parent6deb9f966eb9a280cc16428ba9324ffc15ea60a8 (diff)
Fix tests
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/application_controller.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb
index f90628b0d..b10fa977e 100644
--- a/app/controllers/application_controller.rb
+++ b/app/controllers/application_controller.rb
@@ -9,4 +9,10 @@ class ApplicationController < ActionController::Base
       Rack::MiniProfiler.authorize_request
     end
   end
+
+  protected
+
+  def current_account
+    current_user.try(:account)
+  end
 end