From 6426819b6f7af0eff516340ca24d7f8af1cc6397 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Thu, 18 Aug 2016 17:13:41 +0200 Subject: Fix tests --- app/controllers/application_controller.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'app/controllers') 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 -- cgit