comparison app/models/user_preference.rb @ 511:107d36338b70 live

Merge from branch "cannam"
author Chris Cannam
date Thu, 14 Jul 2011 10:43:07 +0100
parents 051f544170fe
children cbb26bc654de
comparison
equal deleted inserted replaced
451:a9f6345cb43d 511:107d36338b70
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