Class: Backend::Cells::WorkingSetsStocksCellsController

Inherits:
BaseController show all
Defined in:
app/controllers/backend/cells/working_sets_stocks_cells_controller.rb

Instance Attribute Summary

Attributes inherited from ApplicationController

#current_theme

Instance Method Summary collapse

Methods inherited from BaseController

accounts_range_crit, crit_params, journal_entries_states_crit, journal_period_crit, journals_crit, search_conditions

Methods inherited from ApplicationController

#after_sign_in_path_for, #authorized?, human_action_name, #human_action_name

Instance Method Details

#showObject


4
5
6
7
8
9
# File 'app/controllers/backend/cells/working_sets_stocks_cells_controller.rb', line 4

def show
  @working_set = params[:working_set] || :matters
  @working_set = @working_set.to_sym
  @indicator = Nomen::Indicator[params[:indicator] || :net_mass]
  @unit = (params[:unit] ? Nomen::Unit[params[:unit]] : @indicator.unit)
end