Sha256: a9c54f03b961e34e5b4f5aff97f27d8d1df2bf2a2798419b28bb9d293cc6fa09

Contents?: true

Size: 322 Bytes

Versions: 4

Compression:

Stored size: 322 Bytes

Contents

module SugarCRM; class Connection
  def resolve_fields(module_name, fields)
    # FIXME: This is to work around a bug in SugarCRM 6.0
    # where no fields are returned if no fields are specified
    if fields.length == 0
      fields = Module.find(module_name).fields.keys
    end
    return fields.to_json
  end
end; end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
sugarcrm-0.7.9 lib/sugarcrm/connection/helper.rb
sugarcrm-0.7.8 lib/sugarcrm/connection/helper.rb
sugarcrm-0.7.7 lib/sugarcrm/connection/helper.rb
sugarcrm-0.7.2 lib/sugarcrm/connection/helper.rb