Closed afeld closed 12 years ago
did you find out a solution for this ?
Thanks
havent looked at recent changes to ConsumerToken, but at the time i couldnt do it without patching the ConsumerToken itself. @pelle, thoughts?
Put this in your consumer_token.rb:
# Make credentials also available for objects.
# Needed to make TwitterToken work.
def credentials
self.class.send(:credentials)
end
OR create a twitter_token.rb model in your app and add self. on the line in the client method:
if credentials[:client].to_sym==:oauth_gem
So inside of the
TwitterToken#client
method, I am getting the follow error when trying to authorize:I threw in some debugger statements and was strangely able to access
credentials
from withinTwitterToken.consumer
- i.e. only from the class but not from the instance. Any idea how I might get around this? I triedself.class.credentials
, but no dice.