Skip to content
This repository has been archived by the owner on Sep 20, 2023. It is now read-only.

Commit

Permalink
Fixed GreeHelperのrequestはActionDispatch::RequestではなくRack::Request
Browse files Browse the repository at this point in the history
  • Loading branch information
t1732 authored and akicho8 committed Jul 29, 2013
1 parent 40239f1 commit ad086d4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
opensocial-wap (0.0.15)
opensocial-wap (0.1.2)
oauth
rack (>= 1.2.1)

Expand Down
2 changes: 1 addition & 1 deletion lib/opensocial-wap/oauth/helpers/gree_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module OpensocialWap::OAuth::Helpers
#
class GreeHelper < BasicHelper
def access_token
if defined?(Rails::Railtie) && ActionDispatch::Request === @request
if defined?(Rails::Railtie) && Rack::Request === @request
app_config = Rails.application.config
if app_config.respond_to?(:opensocial_wap) && app_config.opensocial_wap.url.call(@request).default[:format].in?([:local])
return OAuth::AccessToken.new(consumer, @request.session[:oauth_token], @request.session[:oauth_token_secret])
Expand Down
2 changes: 1 addition & 1 deletion lib/opensocial-wap/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module OpensocialWap
VERSION = "0.1.1"
VERSION = "0.1.2"
end

0 comments on commit ad086d4

Please sign in to comment.