Permalink
Browse files

allow parsing id in params

  • Loading branch information...
1 parent 0e397f0 commit 4354829b27f7b53a631b9f7a1b2dfb6e20da3761 @lancejpollard lancejpollard committed Aug 28, 2012
Showing with 1 addition and 6 deletions.
  1. +1 −6 packages/tower-controller/shared/params.coffee
@@ -42,7 +42,7 @@ Tower.ControllerParams =
# @todo refactor
_buildCursorFromGet: (params, cursor) ->
parsers = @params()
-
+
for name, parser of parsers
if params.hasOwnProperty(name)
if name == 'sort'
@@ -58,11 +58,6 @@ Tower.ControllerParams =
object = {}
object[name] = params[name]
cursor.where(object)
- # @todo make more robust, needs to allow for belongsTo
- else if name.match(/Id$/)
- object = {}
- object[name] = params[name]
- cursor.where(object)
cursor

0 comments on commit 4354829

Please sign in to comment.