From: Toshi MARUYAMA Date: Sat, 21 Nov 2020 13:53:05 +0000 (+0000) Subject: fix one liner function semicolon at app/models/user_preference.rb X-Git-Tag: 4.2.0~353 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=67df6184828707fa2f98e71e8e65031afde7ae80;p=redmine.git fix one liner function semicolon at app/models/user_preference.rb git-svn-id: http://svn.redmine.org/redmine/trunk@20465 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/models/user_preference.rb b/app/models/user_preference.rb index 3a8723111..4c36e5ef7 100644 --- a/app/models/user_preference.rb +++ b/app/models/user_preference.rb @@ -81,8 +81,8 @@ class UserPreference < ActiveRecord::Base end end - def comments_sorting; self[:comments_sorting] end - def comments_sorting=(order); self[:comments_sorting]=order end + def comments_sorting; self[:comments_sorting]; end + def comments_sorting=(order); self[:comments_sorting]=order; end def warn_on_leaving_unsaved; self[:warn_on_leaving_unsaved] || '1'; end def warn_on_leaving_unsaved=(value); self[:warn_on_leaving_unsaved]=value; end @@ -93,10 +93,10 @@ class UserPreference < ActiveRecord::Base def notify_about_high_priority_issues; (self[:notify_about_high_priority_issues] == true || self[:notify_about_high_priority_issues] == '1'); end def notify_about_high_priority_issues=(value); self[:notify_about_high_priority_issues]=value; end - def activity_scope; Array(self[:activity_scope]) ; end - def activity_scope=(value); self[:activity_scope]=value ; end + 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; self[:textarea_font]; end def textarea_font=(value); self[:textarea_font]=value; end def recently_used_projects; (self[:recently_used_projects] || 3).to_i; end