You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
553 B

  1. # frozen_string_literal: true
  2. class AboutController < ApplicationController
  3. before_action :set_pack
  4. layout 'public'
  5. before_action :set_instance_presenter, only: [:show, :more, :terms]
  6. def show
  7. @hide_navbar = true
  8. end
  9. def more; end
  10. def terms; end
  11. private
  12. def new_user
  13. User.new.tap do |user|
  14. user.build_account
  15. user.build_invite_request
  16. end
  17. end
  18. helper_method :new_user
  19. def set_pack
  20. use_pack 'common'
  21. end
  22. def set_instance_presenter
  23. @instance_presenter = InstancePresenter.new
  24. end
  25. end