ujh/fountainpencompanion

View on GitHub
app/controllers/reading_statuses_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
class ReadingStatusesController < ApplicationController
  before_action :authenticate_user!

  def update
    current_user
      .reading_statuses
      .find_by(id: params[:id])
      &.update(dismissed: true)
  end
end