Permalink
Browse files

getting rid of the middleware for now (it screws up rack cookies)

  • Loading branch information...
1 parent 7f7597f commit 581e5077425b4d834622efce3c1425508c169f36 @jacquescrocker committed Jun 10, 2011
Showing with 22 additions and 21 deletions.
  1. +22 −21 lib/aarrr/middleware.rb
View
@@ -1,21 +1,22 @@
-module AARRR
- class Middleware
-
- def initialize(app)
- @app = app
- end
-
- def call(env)
- aarrr_session = AARRR(env)
-
- status, headers, body = @app.call(env)
-
- # sets a tracking cookie on the response
- response = Rack::Response.new body, status, headers
- aarrr_session.set_cookie(response)
-
- response.finish
- end
-
- end
-end
+# DONT USE THIS, ITS FUCKED
+# module AARRR
+# class Middleware
+#
+# def initialize(app)
+# @app = app
+# end
+#
+# def call(env)
+# aarrr_session = AARRR(env)
+#
+# status, headers, body = @app.call(env)
+# # require 'ruby-debug';debugger
+# # sets a tracking cookie on the response
+# response = Rack::Response.new body, status, headers
+# # aarrr_session.set_cookie(response)
+#
+# response.finish
+# end
+#
+# end
+# end

0 comments on commit 581e507

Please sign in to comment.