comparison app/models/user_preference.rb @ 514:7eba09d624db live

Merge
author Chris Cannam
date Thu, 14 Jul 2011 10:50:53 +0100
parents 051f544170fe
children cbb26bc654de
comparison
equal deleted inserted replaced
512:b9aebdd7dd40 514:7eba09d624db
49 end 49 end
50 end 50 end
51 51
52 def comments_sorting; self[:comments_sorting] end 52 def comments_sorting; self[:comments_sorting] end
53 def comments_sorting=(order); self[:comments_sorting]=order end 53 def comments_sorting=(order); self[:comments_sorting]=order end
54
55 def warn_on_leaving_unsaved; self[:warn_on_leaving_unsaved] || '1'; end
56 def warn_on_leaving_unsaved=(value); self[:warn_on_leaving_unsaved]=value; end
54 end 57 end