Skip to content

Commit

Permalink
Changed the name of with-params to with-request-params to not clash with
Browse files Browse the repository at this point in the history
similarly named function from form-helpers.

Signed-off-by: James Reeves <jreeves@weavejester.com>
  • Loading branch information
budu authored and weavejester committed Jun 24, 2009
1 parent ee3fc8e commit 1eefde8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/compojure/http/request.clj
Expand Up @@ -84,7 +84,7 @@
(assoc-func :form-params parse-form-params)
(assoc-func :params get-merged-params)))

(defn with-params
(defn with-request-params
"Decorator that adds urlencoded parameters to the request map."
[handler]
(fn [request]
Expand Down
2 changes: 1 addition & 1 deletion src/compojure/http/routes.clj
Expand Up @@ -204,7 +204,7 @@
and cookies to the request."
[& handlers]
(-> (apply routes* handlers)
with-params
with-request-params
with-cookies))

;; Macros for easily creating a compiled routing table
Expand Down

0 comments on commit 1eefde8

Please sign in to comment.