Skip to content
This repository
Browse code

read only from bound serializations

  • Loading branch information...
commit 3b1dad26941439ba6d92658e3904a3300576e4eb 1 parent be43a65
Daniel E. Renfer authored July 12, 2012
2  src/ciste/core.clj
@@ -81,7 +81,7 @@ succeeded."
81 81
 
82 82
 (defmulti serialize-as
83 83
   "Format the response based on it's serialization type"
84  
-  (fn [x & _] x))
  84
+  (fn [x & _] *serialization*))
85 85
 
86 86
 (defmulti apply-template
87 87
   "Attach a template based on the current format of the request."
6  src/ciste/formats.clj
... ...
@@ -1,3 +1,5 @@
1  
-(ns ciste.formats)
  1
+(ns ciste.formats
  2
+  (:use [ciste.core :only [*format*]])
  3
+  (:require [clojure.tools.logging :as log]))
2 4
 
3  
-(defmulti format-as (fn [format _handler _request] format))
  5
+(defmulti format-as (fn [format _handler _request] *format*))

0 notes on commit 3b1dad2

Please sign in to comment.
Something went wrong with that request. Please try again.