Re: [Rails] upgrade model containing attr_accessible

8 views
Skip to first unread message

Colin Law

unread,
Sep 3, 2018, 3:34:56 AM9/3/18
to Ruby on Rails: Talk
On Sun, 2 Sep 2018 at 21:55, fugee ohu <fuge...@gmail.com> wrote:
> ...
> There's no message model The messages are the receipts They belong to notifications which belong to conversations

How can messages belong to notifications if there is no Message model?

Colin

fugee ohu

unread,
Sep 3, 2018, 5:45:15 AM9/3/18
to Ruby on Rails: Talk
Oh sorry it's in the gem 
What I'm trying to figure out now is it has in notification.rb 
   belongs_to :sender, :polymorphic => :true, :required => false
But there's no model that contains as: :sender
Reply all
Reply to author
Forward
0 new messages