summaryrefslogtreecommitdiffstats
path: root/app/models/user_preference.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2016-10-29 10:10:31 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2016-10-29 10:10:31 +0000
commit8b86d5158e50d27de68a3c69c12b06e1af0deb52 (patch)
tree724ac0a770438aa579d94a77b6855361a329274c /app/models/user_preference.rb
parent6ef3ecc030cfc744244bb15db2f2ef0eb46ed439 (diff)
downloadredmine-8b86d5158e50d27de68a3c69c12b06e1af0deb52.tar.gz
redmine-8b86d5158e50d27de68a3c69c12b06e1af0deb52.zip
Moves blocks definition to Redmine::MyPage.
git-svn-id: http://svn.redmine.org/redmine/trunk@15930 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/user_preference.rb')
-rw-r--r--app/models/user_preference.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/app/models/user_preference.rb b/app/models/user_preference.rb
index 4a07e990c..bf54e5a5b 100644
--- a/app/models/user_preference.rb
+++ b/app/models/user_preference.rb
@@ -82,4 +82,12 @@ class UserPreference < ActiveRecord::Base
def textarea_font; self[:textarea_font] end
def textarea_font=(value); self[:textarea_font]=value; end
+
+ def my_page_layout
+ self[:my_page_layout] ||= Redmine::MyPage.default_layout.deep_dup
+ end
+
+ def my_page_layout=(arg)
+ self[:my_page_layout] = arg
+ end
end