 
         # remap nested data according to rails conventions
         else if _.isObject(value)
-          value = self._collectNonEmptyFields(value)
-
           object["#{key}_attributes"] = value
           delete object[key]
 

    # builds body data. if $subject is an array of objects a nested data object is created
    # containing each object's data, referenced by object id
    data: ->
      subject = _.cloneDeep(@$subject)
      return subject if @$options['raw'] # do not modify data according to rails conventions

      if _.isArray(subject)

      else
        @_remapAttributes(subject)

    # cleans the object to be send
    # * rejects attributes starting with $
    # * rejects validation errors and isPristine attribute
    # * rejects js functions
    # * rejects empty objects {}
    # * rejects empty objects within array [{}]
    _cleanup: (object) ->
      self = @
      newObject = {}

