estately / rets

A pure-ruby library for fetching data from RETS servers
https://github.com/estately/rets
127 stars 94 forks source link

Fixed call of login internally when it already was called #148

Closed valeronm closed 9 years ago

valeronm commented 9 years ago

Noticed that call of #login method doesn't save received capabilities. This caused that all our sessions begins with 2 requests for :login_url (first by our call for #login and second by internal call for #login). This PR should fix that.

hfaulds commented 9 years ago

Looks good to me. I had hoped to only assign @capabilities in the capabilities method but this is obviously a bug at the moment.