5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-23 00:56:22 +00:00
panel/app/controllers/concerns/moderation_concern.rb

14 lines
284 B
Ruby
Raw Normal View History

2024-03-04 17:47:20 +00:00
# frozen_string_literal: true
module ModerationConcern
extend ActiveSupport::Concern
included do
private
def redirect_to_moderation_queue!
redirect_back fallback_location: site_moderation_queue_path(**(session[:moderation_queue_filters] || {}))
end
end
end