1
0
Fork 0

Merge pull request #44 from discoursehosting/master

Add email_messages_level and email_digests as updatable user fields
Dieser Commit ist enthalten in:
Angus McLeod 2020-07-07 10:49:56 +10:00 committet von GitHub
Commit f0edc18804
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 4AEE18F83AFDEB23
2 geänderte Dateien mit 18 neuen und 4 gelöschten Zeilen

Datei anzeigen

@ -47,7 +47,9 @@ const userProperties = [
'website',
'bio_raw',
'trust_level',
'email_level'
'email_level',
'email_messages_level',
'email_digests'
];
const notificationLevels = [

Datei anzeigen

@ -1,7 +1,19 @@
class CustomWizard::Mapper
attr_accessor :inputs, :data, :user
USER_FIELDS = ['name', 'username', 'email', 'date_of_birth', 'title', 'locale', 'trust_level', 'email_level']
USER_FIELDS = [
'name',
'username',
'email',
'date_of_birth',
'title',
'locale',
'trust_level',
'email_level',
'email_messages_level',
'email_digests'
]
PROFILE_FIELDS = ['location', 'website', 'bio_raw']
def self.user_fields