Make current_budget accessible in controller and views
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user