Class: Backend::LandParcelsController

Inherits:
MattersController show all
Defined in:
app/controllers/backend/land_parcels_controller.rb

Instance Attribute Summary

Attributes inherited from ApplicationController

#current_theme

Class 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

Class Method Details

.land_parcels_conditionsObject

params:

:q Text search

23
24
25
26
27
28
# File 'app/controllers/backend/land_parcels_controller.rb', line 23

def self.land_parcels_conditions
  code = ''
  code = search_conditions(products: [:name, :number]) + " ||= []\n"
  code << "c\n"
  code.c
end