Adding user settings (model and mailer), no form yet
This commit is contained in:
parent
943c69c65d
commit
06016453bd
6 changed files with 45 additions and 2 deletions
|
@ -9,4 +9,8 @@ class User < ApplicationRecord
|
|||
scope :prolific, -> { joins('inner join statuses on statuses.account_id = users.account_id').select('users.*, count(statuses.id) as statuses_count').group('users.id').order('statuses_count desc') }
|
||||
scope :recent, -> { order('created_at desc') }
|
||||
scope :admins, -> { where(admin: true) }
|
||||
|
||||
has_settings do |s|
|
||||
s.key :notification_emails, defaults: { follow: true, reblog: true, favourite: true, mention: true }
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue