These are chat archives for mailboxer/mailboxer

7th
Dec 2014
Jahangir Zinedine
@jzinedine
Dec 07 2014 11:08
Hey Guys, Face a blocker issue which has been happened for others too: http://stackoverflow.com/questions/18503114/some-times-getting-activerecordassociationtypemismatch-error
and interesting that it randomly succeed
Appreciate any help
Jahangir Zinedine
@jzinedine
Dec 07 2014 11:19
It turns out that it happens due to monkey patches by other gems like pry_stack-explorer and ..., I'm not sure, but it's been resolved when I added pry_rescue gem
Jahangir Zinedine
@jzinedine
Dec 07 2014 13:31
and I was wrong again, cause it happens but less often
Jahangir Zinedine
@jzinedine
Dec 07 2014 22:17
I think it's a bug, there is a method in message.rb which calls build_receipt in notifincation.rb which accepts a notification object but caller send it a message object
here is the link to build_receipt call from message.rb: https://github.com/mailboxer/mailboxer/blob/master/app/models/mailboxer/message.rb#L29