@@ -30,7 +30,7 class CustomField < ActiveRecord::Base | |||
|
30 | 30 | validate :validate_values |
|
31 | 31 | before_validation :set_searchable |
|
32 | 32 | |
|
33 |
def initialize(attributes |
|
|
33 | def initialize(attributes=nil, *args) | |
|
34 | 34 | super |
|
35 | 35 | self.possible_values ||= [] |
|
36 | 36 | end |
@@ -95,7 +95,7 class Project < ActiveRecord::Base | |||
|
95 | 95 | end |
|
96 | 96 | } |
|
97 | 97 | |
|
98 |
def initialize(attributes |
|
|
98 | def initialize(attributes=nil, *args) | |
|
99 | 99 | super |
|
100 | 100 | |
|
101 | 101 | initialized = (attributes || {}).stringify_keys |
General Comments 0
You need to be logged in to leave comments.
Login now