Class: CalculationResultController

Inherits:
ApplicationController show all
Defined in:
app/controllers/calculation_result_controller.rb

Overview

This controller handles all final results from the calculator - either full, none or partial

Instance Method Summary collapse

Instance Method Details

#current_calculationCalculation

The current calculation from the session converted into a @see Calculation instance


8
9
10
# File 'app/controllers/calculation_result_controller.rb', line 8

def current_calculation
  @current_calculation ||= Calculation.new(session.fetch(:calculation) { {} }.symbolize_keys)
end