Sha256: 3f4df700bd3734f7dd13b87c32af8f74111c5150d5e84b7288375b63bab2dd8d

Contents?: true

Size: 290 Bytes

Versions: 4

Compression:

Stored size: 290 Bytes

Contents

# frozen_string_literal: true

module Thredded
  class ReadStatesController < Thredded::ApplicationController
    before_action :thredded_require_login!

    def update
      MarkAllRead.run(thredded_current_user) if thredded_signed_in?

      redirect_to request.referer
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
thredded-0.13.0 app/controllers/thredded/read_states_controller.rb
thredded-0.12.4 app/controllers/thredded/read_states_controller.rb
thredded-0.12.3 app/controllers/thredded/read_states_controller.rb
thredded-0.12.2 app/controllers/thredded/read_states_controller.rb