BUG: undefined method `downcase' for :oauth_token:Symbol #1

Closed
jimi-c opened this Issue Jan 23, 2012 · 2 comments

Comments

Projects
None yet
2 participants

jimi-c commented Jan 23, 2012

Not sure if this is a bug in the dwolla gem, or if it's in the omniauth-dwolla gem, so I thought I'd start here. After clicking the authorize button for the Dwolla app, I receive the following stack trace:

/usr/lib/ruby/gems/1.8/gems/dwolla-0.0.12/lib/dwolla/user.rb in update_attributes
send("#{key.downcase}=".to_sym, value)
/usr/lib/ruby/gems/1.8/gems/dwolla-0.0.12/lib/dwolla/user.rb in each
attrs.each do |key, value|
/usr/lib/ruby/gems/1.8/gems/dwolla-0.0.12/lib/dwolla/user.rb in update_attributes
attrs.each do |key, value|
/usr/lib/ruby/gems/1.8/gems/dwolla-0.0.12/lib/dwolla/user.rb in initialize
update_attributes(attrs)
/usr/lib/ruby/gems/1.8/gems/dwolla-0.0.12/lib/dwolla/user.rb in new
User.new(:oauth_token => access_token)
/usr/lib/ruby/gems/1.8/gems/dwolla-0.0.12/lib/dwolla/user.rb in me
User.new(:oauth_token => access_token)
/usr/lib/ruby/gems/1.8/bundler/gems/omniauth-dwolla-1aa44ef77e41/lib/omniauth/strategies/dwolla.rb in user
@user ||= ::Dwolla::User.me(access_token.token).fetch

So it seems to be expecting a string, but it's getting an oauth_token class instead.

Contributor

jeffersongirao commented Jan 23, 2012

Hello @jimi1283 i just fixed it in dwolla wrapper gem, please, update to version 0.0.13 and let me know if it works for you. Thanks for reporting.

jimi-c commented Jan 24, 2012

Just got a chance to test this, and looks like it's good to go.

Thanks!

On Mon, Jan 23, 2012 at 9:15 AM, Jefferson Girão
reply@reply.github.com
wrote:

Hello @jimi1283 i just fixed it in dwolla wrapper gem, please, update to version 0.0.13 and let me know if it works for you. Thanks for reporting it.


Reply to this email directly or view it on GitHub:
jeffersongirao#1 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment