raw1z / amistad

Adds friendships management into a rails application
http://github.com/raw1z/amistad
MIT License
185 stars 71 forks source link

Polymorphic association broken using Amistad #44

Closed softmonkeyjapan closed 10 years ago

softmonkeyjapan commented 10 years ago

Hi,

I was using this gem and everything was working as expected so far. However, I recently needed to add a polymorphic association in my user model and include Amistad::FriendModel actually breaks the way Rails is querying the database somehow.

I've created an issue on stackoverflow about it : http://stackoverflow.com/questions/24499383/rails-4-amistad-gem-breaks-polymorphic-association

Any idea why it behave like that?

softmonkeyjapan commented 10 years ago

Ok so I digg into the gem and the problem is actually coming from squeel. Will try to make a fix and a pull request