Permalink
Browse files

make sure the superclass matches so load order does not matter

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

0 comments on commit d4838fd

Please sign in to comment.