about_controller.rb 425 B

123456789101112131415161718192021222324252627
  1. # frozen_string_literal: true
  2. class AboutController < ApplicationController
  3. layout 'public'
  4. before_action :set_instance_presenter, only: [:show, :more, :terms]
  5. def show
  6. @hide_navbar = true
  7. end
  8. def more; end
  9. def terms; end
  10. private
  11. def new_user
  12. User.new.tap(&:build_account)
  13. end
  14. helper_method :new_user
  15. def set_instance_presenter
  16. @instance_presenter = InstancePresenter.new
  17. end
  18. end