Skip to content

Commit

Permalink
Remove inclusion of PgSearchable
Browse files Browse the repository at this point in the history
  • Loading branch information
njaeggi committed Nov 4, 2024
1 parent 55f6674 commit 5f001ff
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/models/die_mitte/person.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,7 @@ module DieMitte::Person
Person::PUBLIC_ATTRS << :title << :website << :correspondence_language <<
:civil_status << :salutation

include PgSearchable
SEARCHABLE_ATTRS = [{roles: {translations: [:label]}}] # rubocop:disable Lint/ConstantDefinitionInBlock
Person::SEARCHABLE_ATTRS.find { |element| element.is_a?(Hash) }.merge!(role_translations: [:label])

i18n_enum :correspondence_language, Settings.application
.correspondence_languages
Expand Down

0 comments on commit 5f001ff

Please sign in to comment.