GrailsInAction / graina2

Source code for the 2nd edition of Grails in Action
90 stars 93 forks source link

Unnecessary use of `params.` in listing 5.3 #104

Open pledbrook opened 10 years ago

pledbrook commented 10 years ago

The return map for the search action looks like this:

return [ users: users,
    term: params.loginId,
    totalUsers: User.count() ]

The action is actually using a loginId argument, so the params. is not necessary.