Module: SugarCRM::AttributeMethods::ClassMethods
- Defined in:
- lib/sugarcrm/attribute_methods.rb
Instance Method Summary collapse
-
#attributes_from_module_fields ⇒ Object
Returns a hash of the module fields from the module.
Instance Method Details
#attributes_from_module_fields ⇒ Object
Returns a hash of the module fields from the module
5 6 7 8 9 10 11 |
# File 'lib/sugarcrm/attribute_methods.rb', line 5 def attributes_from_module_fields fields = {} self._module.fields.keys.sort.each do |k| fields[k.to_s] = nil end fields end |