Method: DynamicFieldsets::Field.descendants
- Defined in:
- app/models/dynamic_fieldsets/field.rb
.descendants ⇒ Array
Either calls the defaul descendants method or pulls the data from the config Deals with weird single table inheritance issues with cache classes off Causes errors only in development mode
41 42 43 44 45 46 47 |
# File 'app/models/dynamic_fieldsets/field.rb', line 41 def self.descendants if ::Rails.application.config.cache_classes super else DynamicFieldsets.config.available_field_types.map(&:constantize) end end |