Skip to content

Commit

Permalink
explicitely define recipients_ids as attributes, try to fix foodcoops…
Browse files Browse the repository at this point in the history
  • Loading branch information
mortbauer committed Mar 8, 2024
1 parent 5203f1b commit 71a8ded
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugins/messages/app/models/message.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ class Message < ApplicationRecord
has_many :message_recipients, dependent: :destroy
has_many :recipients, through: :message_recipients, source: :user

attribute :recipients_ids

attr_accessor :send_method, :recipient_tokens, :order_id

scope :threads, -> { where(reply_to: nil) }
Expand Down

0 comments on commit 71a8ded

Please sign in to comment.