Module: SunspotCell::CompositeSetup::InstanceMethods
- Defined in:
- lib/sunspot_cell/composite_setup.rb
Instance Method Summary collapse
-
#all_attachment_fields ⇒ Object
Collection of all attachment fields configured for any of the enclosed types.
Instance Method Details
#all_attachment_fields ⇒ Object
Collection of all attachment fields configured for any of the enclosed types.
Returns
- Array
-
Text fields configured for the enclosed types
18 19 20 |
# File 'lib/sunspot_cell/composite_setup.rb', line 18 def @attachment_fields ||= .values.map { |set| set.to_a }.flatten end |