adds budget results

This commit is contained in:
rgarcia
2017-05-19 14:00:12 +02:00
parent f0d7acd087
commit ed5a1cecbb
11 changed files with 252 additions and 3 deletions

View File

@@ -0,0 +1,21 @@
module Budgets
class ResultsController < ApplicationController
load_and_authorize_resource :budget
def show
@result = load_result
end
private
def load_result
Budget::Result.new(@budget, heading)
end
def heading
@budget.headings.find(params[:heading_id])
end
end
end