Method: DynamicFieldsets::Field.descendant_collection

Defined in:
app/models/dynamic_fieldsets/field.rb

.descendant_collectionArray<String>

Returns Humanized collection of descendants.

Returns:

  • (Array<String>)

    Humanized collection of descendants



50
51
52
# File 'app/models/dynamic_fieldsets/field.rb', line 50

def self.descendant_collection
  descendants.collect { |d| [d.to_s.gsub("DynamicFieldsets::", "").underscore.humanize, d.to_s ] }
end