Skip to content
This repository
Browse code

make sure the superclass matches so load order does not matter

  • Loading branch information...
commit d4838fdcb2b311a01329d9994752894e3d308719 1 parent fecfd61
Aaron Patterson authored May 04, 2012
2  actionpack/lib/action_dispatch/middleware/cookies.rb
@@ -2,7 +2,7 @@
2 2
 require 'active_support/core_ext/hash/keys'
3 3
 
4 4
 module ActionDispatch
5  
-  class Request
  5
+  class Request < Rack::Request
6 6
     def cookie_jar
7 7
       env['action_dispatch.cookies'] ||= Cookies::CookieJar.build(self)
8 8
     end
2  actionpack/lib/action_dispatch/middleware/flash.rb
... ...
@@ -1,5 +1,5 @@
1 1
 module ActionDispatch
2  
-  class Request
  2
+  class Request < Rack::Request
3 3
     # Access the contents of the flash. Use <tt>flash["notice"]</tt> to
4 4
     # read a notice you put there or <tt>flash["notice"] = "hello"</tt>
5 5
     # to put a new one.

0 notes on commit d4838fd

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