Skip to content

Commit

Permalink
Bring bacl public_display and subspecies_infor to trimmed version
Browse files Browse the repository at this point in the history
  • Loading branch information
roshan-mathewtech committed Sep 20, 2022
1 parent 4239d92 commit aaba632
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 24 deletions.
4 changes: 0 additions & 4 deletions app/serializers/species/cites_suspension_serializer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,4 @@ def include_nomenclature_note_es?
@options[:trimmed] == 'false'
end

def include_subspecies_info?
return true unless @options[:trimmed]
@options[:trimmed] == 'false'
end
end
5 changes: 0 additions & 5 deletions app/serializers/species/eu_decision_serializer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,6 @@ class Species::EuDecisionSerializer < ActiveModel::Serializer
:private_url,
:intersessional_decision_id

def include_subspecies_info?
return true unless @options[:trimmed]
@options[:trimmed] == 'false'
end

def include_nomenclature_note_fr?
return true unless @options[:trimmed]
@options[:trimmed] == 'false'
Expand Down
5 changes: 0 additions & 5 deletions app/serializers/species/listing_change_serializer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,6 @@ class Species::ListingChangeSerializer < ActiveModel::Serializer
:effective_at_formatted, :short_note_en, :full_note_en, :auto_note,
:is_inclusion, :subspecies_info, :inherited_full_note_en, :inherited_short_note_en

def include_subspecies_info?
return true unless @options[:trimmed]
@options[:trimmed] == 'false'
end

def is_inclusion
object.inclusion_taxon_concept_id
end
Expand Down
10 changes: 0 additions & 10 deletions app/serializers/species/quota_serializer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,6 @@ def include_nomenclature_note_es?
@options[:trimmed] == 'false'
end

def include_public_display?
return true unless @options[:trimmed]
@options[:trimmed] == 'false'
end

def include_subspecies_info?
return true unless @options[:trimmed]
@options[:trimmed] == 'false'
end

def include_publication_date_formatted?
return true unless @options[:trimmed]
@options[:trimmed] == 'false'
Expand Down

0 comments on commit aaba632

Please sign in to comment.