Class: Pageflow::Comment Private

Inherits:
ApplicationRecord show all
Includes:
NestedRevisionComponent
Defined in:
app/models/pageflow/comment.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Constant Summary collapse

QUOTE_LIMIT =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

Quotes are recorded by the client, so cut rather than reject: an unexpectedly long selection must not keep a comment from being saved. Kept in sync with the limit quote extraction applies in entry_types/scrolled/package/src/review/subjectQuote.js, so that a recorded quote stays comparable to the text as it reads later on.

4_000

Instance Method Summary collapse

Methods included from NestedRevisionComponent

#duplicate

Instance Method Details

#entry_for_auto_generated_perma_idObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



20
21
22
# File 'app/models/pageflow/comment.rb', line 20

def entry_for_auto_generated_perma_id
  comment_thread.revision.entry
end