Sha256: 81e67e4807b6ca153e03289820bdeb2b0b5eff084acf847f1bbef6afde803a8c

Contents?: true

Size: 280 Bytes

Versions: 9

Compression:

Stored size: 280 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 signed_in?

      redirect_to request.referer
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
thredded-0.10.0 app/controllers/thredded/read_states_controller.rb
thredded-0.9.4 app/controllers/thredded/read_states_controller.rb
thredded-0.9.3 app/controllers/thredded/read_states_controller.rb
thredded-0.9.2 app/controllers/thredded/read_states_controller.rb
thredded-0.9.1 app/controllers/thredded/read_states_controller.rb
thredded-0.8.4 app/controllers/thredded/read_states_controller.rb
thredded-0.8.2 app/controllers/thredded/read_states_controller.rb
thredded-0.7.0 app/controllers/thredded/read_states_controller.rb
thredded-0.6.3 app/controllers/thredded/read_states_controller.rb