         else
           conditions.where[key] = value
 
+
       conditions
 
     applyConditionsToScope: (scope, conditions) ->

              # we sort ascending by default
              # a minus in front of the attribute sorts descending
              if firstChar isnt "-"
                unless conditions.asc?
                  conditions.asc = []
                conditions.asc.push value
              else if firstChar is "-"
                unless conditions.desc?
                    conditions.desc = []
                conditions.desc.push value[1..-1]

          if key is "limit" or key is "offset"

            # includes can contain multiple classes
            includeParams = value.split(",")
            for value in includeParams
              conditions.includes or= []
              conditions.includes.push value
          continue
        if key not in allowedWhereAttributes
          continue
        # all other parameter names are treated as where conditions
        conditions.where or= {}
        firstChar = value[0]
        checksForEquality = firstChar isnt ">" and firstChar isnt "<"
        if not checksForEquality
