diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-12-18 13:26:20 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-12-18 13:26:20 +0000 |
commit | 062fbeae80477b8e5a95b2e5222f98b7e94c70b7 (patch) | |
tree | 45a191c0bf65a6f3556cf71e99981a8595fa04a3 /app/models/custom_field.rb | |
parent | 5eed64b8488ac1f45537f9d8cb36a811921f7794 (diff) | |
download | redmine-062fbeae80477b8e5a95b2e5222f98b7e94c70b7.tar.gz redmine-062fbeae80477b8e5a95b2e5222f98b7e94c70b7.zip |
Makes models #initialize accept additional arguments.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8287 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/custom_field.rb')
-rw-r--r-- | app/models/custom_field.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/custom_field.rb b/app/models/custom_field.rb index 09cb03471..87285ed66 100644 --- a/app/models/custom_field.rb +++ b/app/models/custom_field.rb @@ -30,7 +30,7 @@ class CustomField < ActiveRecord::Base validate :validate_values before_validation :set_searchable - def initialize(attributes = nil) + def initialize(attributes=nil, *args) super self.possible_values ||= [] end |