Sha256: 5cc06700059470a4b8db30f4716aab650ce03add4318ee206afce9c2291f6eed

Contents?: true

Size: 300 Bytes

Versions: 38

Compression:

Stored size: 300 Bytes

Contents

# frozen_string_literal: true

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

    def update
      Thredded::MarkAllRead.run(thredded_current_user) if thredded_signed_in?

      redirect_to request.referer
    end
  end
end

Version data entries

38 entries across 38 versions & 2 rubygems

Version Path
thredded-1.1.0 app/controllers/thredded/read_states_controller.rb
thredded-1.0.1 app/controllers/thredded/read_states_controller.rb
thredded-1.0.0 app/controllers/thredded/read_states_controller.rb
thredded-0.16.16 app/controllers/thredded/read_states_controller.rb
thredded-0.16.15 app/controllers/thredded/read_states_controller.rb
thredded-0.16.14 app/controllers/thredded/read_states_controller.rb
thredded-0.16.13 app/controllers/thredded/read_states_controller.rb
thredded-0.16.12 app/controllers/thredded/read_states_controller.rb
thredded-0.16.11 app/controllers/thredded/read_states_controller.rb
thredded-0.16.10 app/controllers/thredded/read_states_controller.rb
thredded-0.16.9 app/controllers/thredded/read_states_controller.rb
thredded-0.16.8 app/controllers/thredded/read_states_controller.rb
thredded-0.16.7 app/controllers/thredded/read_states_controller.rb
thredded-0.16.6 app/controllers/thredded/read_states_controller.rb
thredded-0.16.5 app/controllers/thredded/read_states_controller.rb
thredded-0.16.4 app/controllers/thredded/read_states_controller.rb
thredded-0.16.3 app/controllers/thredded/read_states_controller.rb
thredded-0.16.1 app/controllers/thredded/read_states_controller.rb
thredded-0.16.0 app/controllers/thredded/read_states_controller.rb
thredded-0.15.5 app/controllers/thredded/read_states_controller.rb