Skip to content

armgit / maybe

Public Imported from GitHub
0

The personal finance app for everyone

Merge branch 'main' of https://github.com/maybe-finance/maybe

Josh Pigford55c352e8ef01
diff --cc app/controllers/application_controller.rb
index f349b44e,c9ea07f8..c7c7cc88
--- a/app/controllers/application_controller.rb
+++ b/app/controllers/application_controller.rb
@@@ -13,14 -13,9 +13,14 @@@ class ApplicationController < ActionCon
end
helper_method :current_user
+ def current_family
+ current_user.family
+ end
+ helper_method :current_family
+
def authenticate_user_from_session
User.find_by(id: session[:user_id])
- end
+ end
def user_signed_in?
current_user.present?