mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-26 18:31:14 +00:00
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
This commit is contained in:
parent
393b964774
commit
67df618482
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user