Filter languages with opt out (#3175)
* Remove allowed_languages and add filtered_languages * Use filtered_languages instead of allowed_languages
This commit is contained in:
parent
2e112e2406
commit
8f4b7c1820
21 changed files with 30 additions and 41 deletions
|
@ -30,7 +30,7 @@
|
|||
# otp_required_for_login :boolean
|
||||
# last_emailed_at :datetime
|
||||
# otp_backup_codes :string is an Array
|
||||
# allowed_languages :string default([]), not null, is an Array
|
||||
# filtered_languages :string default([]), not null, is an Array
|
||||
#
|
||||
|
||||
class User < ApplicationRecord
|
||||
|
@ -83,6 +83,6 @@ class User < ApplicationRecord
|
|||
private
|
||||
|
||||
def sanitize_languages
|
||||
allowed_languages.reject!(&:blank?)
|
||||
filtered_languages.reject!(&:blank?)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue