lib/contacts/oauth_consumer.rb
def serialize_oauth_token(token)
      params = {
        'version' => '1',  # serialization format
        'type' => token.is_a?(OAuth::AccessToken) ? 'access' : 'request',
        'oauth_token' => token.token,
        'oauth_token_secret' => token.secret,
      }
      params_to_query(params)
    end
#
# Marshal sucks for persistence. This provides a prettier, more
# future-proof persistable representation of a token.
#
Marshal sucks for persistence. This provides a prettier, more
future-proof persistable representation of a token.
Marshal sucks for persistence . This provides a prettier more future - proof persistable representation of a token .
def serialize_oauth_token(token)
      params = {
        'version' => '1',  
        'type' => token.is_a?(OAuth::AccessToken) ? 'access' : 'request',
        'oauth_token' => token.token,
        'oauth_token_secret' => token.secret,
      }
      params_to_query(params)
    end
def serialize_oauth_token ( token ) params = { 'version' => '1' , 'type' => token . is_a? ( OAuth :: AccessToken ) ? 'access' : 'request' , 'oauth_token' => token . token , 'oauth_token_secret' => token . secret , } params_to_query ( params ) end
Marshal sucks for persistence.
Marshal sucks for persistence .
# serialization format
token