chicks / sugarcrm

A ruby based REST Client for SugarCRM
MIT License
90 stars 64 forks source link

SugarCRM::Account.new.associations returns an array with nil values #29

Closed chicks closed 13 years ago

chicks commented 13 years ago

From head:

SugarCRM::Account.new.associations => [, , , , , , , , , , , , , , , , , , , , , , , , , ]

davidsulc commented 13 years ago

It seems Associations#to_s isn't correct. I can't quite understand why the code is that way. Maybe we should store relationship names when calling Association#humanized_link_name?

(This is a bigger issue: SugarCRM::Contact.first.associations won't list accounts as a relationship, for example.)

chicks commented 13 years ago

From what I can tell, this was a cosmetic issue. I've pushed some fixes to HEAD