Class: Projects::ImportExport::ProjectExportPresenter
- Inherits:
-
Gitlab::View::Presenter::Delegated
- Object
- SimpleDelegator
- Gitlab::View::Presenter::Delegated
- Projects::ImportExport::ProjectExportPresenter
- Includes:
- ActiveModel::Serializers::JSON
- Defined in:
- app/presenters/projects/import_export/project_export_presenter.rb
Instance Method Summary collapse
Methods inherited from Gitlab::View::Presenter::Delegated
Methods included from Gitlab::Utils::DelegatorOverride
#delegator_override, #delegator_override_with, #delegator_target, validator, validators, verify!
Methods included from Gitlab::View::Presenter::Base
#__subject__, #can?, #declarative_policy_delegate, #is_a?, #path_with_line_numbers, #present, #url_builder, #web_path, #web_url
Methods included from Gitlab::Allowable
Methods included from Gitlab::Routing
includes_helpers, redirect_legacy_paths, url_helpers
Constructor Details
This class inherits a constructor from Gitlab::View::Presenter::Delegated
Instance Method Details
#description ⇒ Object
24 25 26 |
# File 'app/presenters/projects/import_export/project_export_presenter.rb', line 24 def description self.respond_to?(:override_description) ? override_description : super end |
#project_members ⇒ Object
19 20 21 |
# File 'app/presenters/projects/import_export/project_export_presenter.rb', line 19 def project_members super.preload(:user) + converted_group_members # rubocop:disable CodeReuse/ActiveRecord end |
#protected_branches ⇒ Object
29 30 31 |
# File 'app/presenters/projects/import_export/project_export_presenter.rb', line 29 def protected_branches project.exported_protected_branches end |