Permalink
Browse files

read only from bound serializations

  • Loading branch information...
1 parent be43a65 commit 3b1dad26941439ba6d92658e3904a3300576e4eb @duck1123 duck1123 committed Jul 13, 2012
Showing with 5 additions and 3 deletions.
  1. +1 −1 src/ciste/core.clj
  2. +4 −2 src/ciste/formats.clj
View
@@ -81,7 +81,7 @@ succeeded."
(defmulti serialize-as
"Format the response based on it's serialization type"
- (fn [x & _] x))
+ (fn [x & _] *serialization*))
(defmulti apply-template
"Attach a template based on the current format of the request."
View
@@ -1,3 +1,5 @@
-(ns ciste.formats)
+(ns ciste.formats
+ (:use [ciste.core :only [*format*]])
+ (:require [clojure.tools.logging :as log]))
-(defmulti format-as (fn [format _handler _request] format))
+(defmulti format-as (fn [format _handler _request] *format*))

0 comments on commit 3b1dad2

Please sign in to comment.