diff options
Diffstat (limited to 'app/models/user_preference.rb')
-rw-r--r-- | app/models/user_preference.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/models/user_preference.rb b/app/models/user_preference.rb index 1ed9e0fd9..73e4a50c6 100644 --- a/app/models/user_preference.rb +++ b/app/models/user_preference.rb @@ -46,4 +46,7 @@ class UserPreference < ActiveRecord::Base self.others.store attr_name, value end end + + def comments_sorting; self[:comments_sorting] end + def comments_sorting=(order); self[:comments_sorting]=order end end |