fixes management specs

This commit is contained in:
rgarcia
2017-01-08 13:39:01 +01:00
parent 3ba57bbab2
commit be10972406

View File

@@ -12,6 +12,7 @@ class Management::Budgets::InvestmentsController < Management::BaseController
end
def new
load_categories
end
def create
@@ -58,4 +59,8 @@ class Management::Budgets::InvestmentsController < Management::BaseController
@heading = @budget.headings.find(params[:heading_id]) if params[:heading_id].present?
end
def load_categories
@categories = ActsAsTaggableOn::Tag.where("kind = 'category'").order(:name)
end
end