Class: Backend::ManureManagementPlansController

Inherits:
BaseController show all
Defined in:
app/controllers/backend/manure_management_plans_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

Show one animal with params_id


58
59
60
61
62
# File 'app/controllers/backend/manure_management_plans_controller.rb', line 58

def show
  return unless @manure_management_plan = find_and_check
  t3e @manure_management_plan
  respond_with(@manure_management_plan, include: [:campaign, :recommender, { zones: { methods: [:soil_nature_name, :cultivation_variety_name], include: [{ support: { include: :storage } }, :activity, :production] } }])
end