Skip to content

Commit

Permalink
Change from Rack::Request to ActionDispatch::Request according to Rai…
Browse files Browse the repository at this point in the history
…ls 3.0

Signed-off-by: Shin-ichiro OGAWA <rust.stnard+git@gmail.com>
  • Loading branch information
rust committed Aug 5, 2010
1 parent f55b0ee commit 9e3aa66
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/jpmobile/trans_sid.rb
Expand Up @@ -7,9 +7,9 @@ def self.included(base)
base.class_eval do
# cookie よりも params を先に見るパッチ
def extract_session_id_with_jpmobile(env)
request = Rack::Request.new(env)
request = ActionDispatch::Request.new(env.dup)
if request.params[@key] and !@cookie_only
sid = request.params[@key] unless @cookie_only
sid = request.params[@key]
end
sid ||= request.cookies[@key]
sid
Expand Down

0 comments on commit 9e3aa66

Please sign in to comment.