Class: Backend::BuildingsController

Inherits:
ProductGroupsController show all
Defined in:
app/controllers/backend/buildings_controller.rb

Instance Attribute Summary

Attributes inherited from ApplicationController

#current_theme

Instance Method Summary collapse

Methods inherited from ProductsController

list_conditions, #take

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

#indexObject

Displays the main page with the list of buildings


30
31
32
33
# File 'app/controllers/backend/buildings_controller.rb', line 30

def index
  notify_now(:need_building_to_record_stock_moves) unless Building.any?
  super
end