Bug #296 » 0001-Fix-family_id-references.patch
app/models/operatingsystem.rb | ||
---|---|---|
# Emulate multiple inheritance from a virtual Family class
|
||
def after_initialize
|
||
extend eval("Family::#{Family::FAMILIES[family_id]}") if self.respond_to?(:family_id) and not family_id.nil?
|
||
extend eval("Family::#{Family::FAMILIES[@family_id]}") if self.respond_to?(:family_id) and not @family_id.nil?
|
||
end
|
||
def family
|