Method: Toolbox::DefaultController::InstanceMethods#embedded_list_collection
- Defined in:
- lib/toolbox/default_controller.rb
#embedded_list_collection(rec) ⇒ Object
274 275 276 277 278 279 |
# File 'lib/toolbox/default_controller.rb', line 274 def rec = {} [:order] = Toolbox::Sorting.order_by params, @embedded_list.., @embedded_list.prefix [:include] = @embedded_list.include_assoc if @embedded_list.include_assoc rec.send(@embedded_list.collection_config.model_method).find(:all, ) end |