about_controller.rb 435 B

12345678910111213141516171819
  1. # frozen_string_literal: true
  2. class AboutController < ApplicationController
  3. include WebAppControllerConcern
  4. skip_before_action :require_functional!
  5. before_action :set_instance_presenter
  6. def show
  7. expires_in(15.seconds, public: true, stale_while_revalidate: 30.seconds, stale_if_error: 1.day) unless user_signed_in?
  8. end
  9. private
  10. def set_instance_presenter
  11. @instance_presenter = InstancePresenter.new
  12. end
  13. end