diff options
author | multiple creatures <dev@multiple-creature.party> | 2019-04-13 16:59:21 -0500 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2019-05-21 03:16:21 -0500 |
commit | 4c170d2a98e4a289ad40580785cbeb892bd68eab (patch) | |
tree | 25487ff89d96f7f04f14432228da1c8d114f5dee /app/models | |
parent | d033327136f99f52eb64171d0da75e19cfc46091 (diff) |
Add options to increase size and spacing of context menus and to gently the kobolds. Also allow showing multiple user roles.
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/user.rb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/app/models/user.rb b/app/models/user.rb index 9e611d33f..f6f164c0b 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -108,6 +108,10 @@ class User < ApplicationRecord :hide_stats, :disable_color, :hide_captions, + :larger_menus, + :gently_kobolds, + :user_is_kobold, + :auto_play_gif, :default_sensitive, :unfollow_modal, @@ -209,6 +213,18 @@ class User < ApplicationRecord save! end + def setting_larger_menus + settings.larger_menus || false + end + + def setting_gently_kobolds + settings.gently_kobolds || false + end + + def setting_user_is_kobold + settings.user_is_kobold || false + end + def setting_default_privacy settings.default_privacy || 'public' end |