summaryrefslogtreecommitdiffstats
path: root/app/models/user_preference.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2013-09-10 17:39:49 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2013-09-10 17:39:49 +0000
commit06efcaddfa6a62022c868e1faee1b25df8935e93 (patch)
treeacccb73c4a7a0962f3b3be6d71f14d860bd11eed /app/models/user_preference.rb
parent15ab64488a3b32793dbc19907302986021cccd7e (diff)
downloadredmine-06efcaddfa6a62022c868e1faee1b25df8935e93.tar.gz
redmine-06efcaddfa6a62022c868e1faee1b25df8935e93.zip
Fixed usage of #attribute_present? in UserPreference (#13008).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@12126 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/user_preference.rb')
-rw-r--r--app/models/user_preference.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/user_preference.rb b/app/models/user_preference.rb
index 37d114ab5..5fccf0485 100644
--- a/app/models/user_preference.rb
+++ b/app/models/user_preference.rb
@@ -33,7 +33,7 @@ class UserPreference < ActiveRecord::Base
end
def [](attr_name)
- if attribute_present? attr_name
+ if has_attribute? attr_name
super
else
others ? others[attr_name] : nil
@@ -41,7 +41,7 @@ class UserPreference < ActiveRecord::Base
end
def []=(attr_name, value)
- if attribute_present? attr_name
+ if has_attribute? attr_name
super
else
h = (read_attribute(:others) || {}).dup