Rails 3.2.7, ActiveRecord with a field called "message" fails

18 views
Skip to first unread message

Obelix

unread,
Jul 30, 2012, 10:46:45 PM7/30/12
to rubyonra...@googlegroups.com
Upgraded to Rails 3.2.7.

I have an ActiveRecord with an attribute called "message".  This works fine until 3.2.6.

With 3.2.7, I get this error:

private method `message' called for #<OutgoingMessageRecipient:0x105cf1da8>

I see a private method called 'message' added.

Short of renaming the field, any other suggestions?

radhames brito

unread,
Jul 31, 2012, 2:01:29 AM7/31/12
to rubyonra...@googlegroups.com
try referring to the attribute like this instance[:message] where instance it the name of the instance of course, e.g outgoing_message_recipient[:message]
Reply all
Reply to author
Forward
0 new messages