Class: Pageflow::Review::CommentThreadReadsController Private

Inherits:
ApplicationController show all
Defined in:
app/controllers/pageflow/review/comment_thread_reads_controller.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.

Instance Method Summary collapse

Instance Method Details

#createObject

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.



8
9
10
11
12
13
14
15
16
17
# File 'app/controllers/pageflow/review/comment_thread_reads_controller.rb', line 8

def create
  entry = DraftEntry.find(params[:entry_id])
  authorize!(:read, entry.to_model)

  CommentThreadRead.mark(entry: entry.to_model,
                         user: current_user,
                         comment_thread_perma_ids: known_perma_ids(entry))

  head :no_content
end