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:
@@ -23,7 +23,7 @@ class UserPreference < ActiveRecord::Base
|
||||
|
||||
before_save :set_others_hash
|
||||
|
||||
def initialize(attributes = nil)
|
||||
def initialize(attributes=nil, *args)
|
||||
super
|
||||
self.others ||= {}
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user