Skip to content

Commit

Permalink
keep deprecated correspondence_language for compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
diegosteiner committed Sep 21, 2023
1 parent 9bc7a5d commit 70a0cdb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion app/serializers/pbs/mailing_list_subscriber_serializer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ module Pbs::MailingListSubscriberSerializer

included do
schema do
# TBD: keep this fields name?
# correspondence_language is deprecated and could be removed in the future
property :correspondence_language, item.language
property :language, item.language
property :kantonalverband_short_name, item.kantonalverband.short_name
end
end
Expand Down
4 changes: 3 additions & 1 deletion app/serializers/pbs/person_serializer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,12 @@ module Pbs::PersonSerializer

included do
extension(:details) do |_|
# TBD: keep fields name?
map_properties :pbs_number, :salutation_value, :language,
:prefers_digital_correspondence, :grade_of_school, :brother_and_sisters,
:entry_date, :leaving_date

# correspondence_language is deprecated and could be removed in the future
property :correspondence_language, item.language
end
end

Expand Down

0 comments on commit 70a0cdb

Please sign in to comment.