Module: LookupList
- Extended by:
- ActiveSupport::Concern
- Included in:
- Logistics::Core::ClientsController
- Defined in:
- app/controllers/concerns/lookup_list.rb
Instance Method Summary collapse
Instance Method Details
#lookup ⇒ Object
6 7 8 9 10 11 |
# File 'app/controllers/concerns/lookup_list.rb', line 6 def lookup clazz = get_model lookups = clazz.order(:name).select('id, name') response = Mks::Common::MethodResponse.new(true, nil, lookups, nil) render json: response end |