Makes models #initialize accept additional arguments.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8287 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang committed 2011-12-18 13:26:20 +00:00
1 parent 5eed64b848
commit 062fbeae80
4 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -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