diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-08-30 19:59:29 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-08-30 19:59:29 +0000 |
commit | 2342fe9a755ff6a4ed509d0eb866fde1d744b791 (patch) | |
tree | 79096e67e6ae82c0312ca32cea99d7a7528d57b0 /app/models/user_preference.rb | |
parent | b405a0be535b365276dfdfbf092107bb07c70713 (diff) | |
download | redmine-2342fe9a755ff6a4ed509d0eb866fde1d744b791.tar.gz redmine-2342fe9a755ff6a4ed509d0eb866fde1d744b791.zip |
User preference for monospaced / variable-width font in textareas (#23653).
git-svn-id: http://svn.redmine.org/redmine/trunk@15753 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/user_preference.rb')
-rw-r--r-- | app/models/user_preference.rb | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/app/models/user_preference.rb b/app/models/user_preference.rb index 52d120c74..4a07e990c 100644 --- a/app/models/user_preference.rb +++ b/app/models/user_preference.rb @@ -29,7 +29,10 @@ class UserPreference < ActiveRecord::Base 'time_zone', 'comments_sorting', 'warn_on_leaving_unsaved', - 'no_self_notified' + 'no_self_notified', + 'textarea_font' + + TEXTAREA_FONT_OPTIONS = ['monospace', 'proportional'] def initialize(attributes=nil, *args) super @@ -76,4 +79,7 @@ class UserPreference < ActiveRecord::Base def activity_scope; Array(self[:activity_scope]) ; end def activity_scope=(value); self[:activity_scope]=value ; end + + def textarea_font; self[:textarea_font] end + def textarea_font=(value); self[:textarea_font]=value; end end |