Module: Toolbox::DefaultController::ClassMethods

Defined in:
lib/toolbox/default_controller.rb

Instance Method Summary collapse

Instance Method Details

#include_assoc(*assoc) ⇒ Object

The listed associations are included in when using find together with search fields. Thus if a search field defintion contains “foreign” fields one may include the corresponding association.



56
57
58
# File 'lib/toolbox/default_controller.rb', line 56

def include_assoc *assoc
  write_inheritable_attribute('include_assoc', assoc)
end