retrospring/app/controllers/moderation_controller.rb

9 lines
224 B
Ruby
Raw Normal View History

2014-12-25 23:00:33 +01:00
class ModerationController < ApplicationController
2020-04-19 01:45:50 +02:00
before_action :authenticate_user!
2014-12-29 01:25:48 +01:00
2022-06-23 23:35:33 +02:00
def toggle_unmask
session[:moderation_view] = !session[:moderation_view]
redirect_back fallback_location: root_path
end
2014-12-25 23:00:33 +01:00
end