73322a0e55
Enables frozen string for the following: * app/controllers/*.rb * app/controllers/admin/**/*.rb * app/controllers/boards/**/*.rb * app/controllers/ci/**/*.rb * app/controllers/concerns/**/*.rb Partially addresses #47424.
33 lines
764 B
Ruby
33 lines
764 B
Ruby
# frozen_string_literal: true
|
|
|
|
module IssuesAction
|
|
extend ActiveSupport::Concern
|
|
include IssuableCollections
|
|
include IssuesCalendar
|
|
|
|
# rubocop:disable Gitlab/ModuleWithInstanceVariables
|
|
def issues
|
|
@issues = issuables_collection
|
|
.non_archived
|
|
.page(params[:page])
|
|
|
|
@issuable_meta_data = issuable_meta_data(@issues, collection_type)
|
|
|
|
respond_to do |format|
|
|
format.html
|
|
format.atom { render layout: 'xml.atom' }
|
|
end
|
|
end
|
|
# rubocop:enable Gitlab/ModuleWithInstanceVariables
|
|
|
|
def issues_calendar
|
|
render_issues_calendar(issuables_collection)
|
|
end
|
|
|
|
private
|
|
|
|
def finder_type
|
|
(super if defined?(super)) ||
|
|
(IssuesFinder if %w(issues issues_calendar).include?(action_name))
|
|
end
|
|
end
|