Make current_budget accessible in controller and views

This commit is contained in:
rgarcia
2018-01-15 18:37:32 +01:00
parent 9176de949a
commit be554a629c
2 changed files with 24 additions and 0 deletions

View File

@@ -25,6 +25,7 @@ class ApplicationController < ActionController::Base
layout :set_layout
respond_to :html
helper_method :current_budget
private
@@ -120,4 +121,8 @@ class ApplicationController < ActionController::Base
params[:filter] ||= "selected"
end
end
def current_budget
Budget.current
end
end