Skip to content
This repository has been archived by the owner on Oct 25, 2022. It is now read-only.

Commit

Permalink
Added optional: true to read_marks [Fixes ledermann#120]
Browse files Browse the repository at this point in the history
  • Loading branch information
k-rudy committed Oct 29, 2020
1 parent 0a86df3 commit 2c4ec96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/unread/read_mark.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
class ReadMark < ActiveRecord::Base
belongs_to :readable, polymorphic: true, inverse_of: :read_marks
belongs_to :readable, polymorphic: true, inverse_of: :read_marks, optional: true

validates_presence_of :reader_id, :reader_type, :readable_type

Expand Down

0 comments on commit 2c4ec96

Please sign in to comment.