From c6e2c5ba2130ee84faf51806cea4e3d7a25beff8 Mon Sep 17 00:00:00 2001 From: Toks Date: Thu, 19 Jun 2014 03:07:19 -0400 Subject: [PATCH] fixes #2200 --- app/models/user.rb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/models/user.rb b/app/models/user.rb index 65023584b..d99048601 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -51,6 +51,7 @@ class User < ActiveRecord::Base before_validation :set_per_page before_create :encrypt_password_on_create before_update :encrypt_password_on_update + before_create :initialize_default_boolean_attributes after_save :update_cache after_update :update_remote_cache before_create :promote_to_admin_if_first_user @@ -767,4 +768,11 @@ class User < ActiveRecord::Base "" end end + + def initialize_default_boolean_attributes + self.enable_post_navigation = true + self.new_post_navigation_layout = true + self.enable_sequential_post_navigation = true + self.enable_auto_complete = true + end end