remove unused filtered? method

This commit is contained in:
simon lehericey 2024-10-15 10:53:53 +02:00
parent f850924dc0
commit 5621edcca8
No known key found for this signature in database
GPG key ID: CDE670D827C7B3C5

View file

@ -69,10 +69,6 @@ class Export < ApplicationRecord
time_span_type == Export.time_span_types.fetch(:monthly) ? 30.days.ago : nil time_span_type == Export.time_span_types.fetch(:monthly) ? 30.days.ago : nil
end end
def filtered?
filtered_columns.present?
end
def self.find_or_create_fresh_export(format, groupe_instructeurs, user_profile, time_span_type: time_span_types.fetch(:everything), statut: statuts.fetch(:tous), procedure_presentation: nil, export_template: nil) def self.find_or_create_fresh_export(format, groupe_instructeurs, user_profile, time_span_type: time_span_types.fetch(:everything), statut: statuts.fetch(:tous), procedure_presentation: nil, export_template: nil)
filtered_columns = Array.wrap(procedure_presentation&.filters_for(statut)) filtered_columns = Array.wrap(procedure_presentation&.filters_for(statut))
sorted_column = procedure_presentation&.sorted_column sorted_column = procedure_presentation&.sorted_column