Module: FatFreeCRM::Fields::SingletonMethods
- Defined in:
- lib/fat_free_crm/fields.rb
Instance Method Summary collapse
Instance Method Details
#field_groups ⇒ Object
35 36 37 |
# File 'lib/fat_free_crm/fields.rb', line 35 def field_groups FieldGroup.where(:klass_name => self.name).order(:position) end |
#fields ⇒ Object
39 40 41 |
# File 'lib/fat_free_crm/fields.rb', line 39 def fields field_groups.map(&:fields).flatten end |