lib/modules/trade/appendix_report.rb
Method initialize
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def initialize(shipments_rel)
@query = shipments_rel.except(:select).select([
'trade_shipments.id', :legacy_shipment_number, :year,
'trade_shipments.taxon_concept_id', 'trade_shipments.appendix',
'm.appendix AS auto_appendix'