1
0

home_controller.rb 392 B

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