]> source.dussan.org Git - redmine.git/commitdiff
fix one liner function semicolon at app/models/user_preference.rb
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 21 Nov 2020 13:53:05 +0000 (13:53 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 21 Nov 2020 13:53:05 +0000 (13:53 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@20465 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/user_preference.rb

index 3a87231111c18dabcbe684f2eec8b49f5e88c3ec..4c36e5ef7e096c425e42674c2a8b588d8308be71 100644 (file)
@@ -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