Bug #296 » 0001-Check-for-existence-of-family_id-before-referencing-.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 defined? family_id and self.respond_to?(:family_id) and not family_id.nil?
|
||
end
|
||
def family
|
- « Previous
- 1
- 2
- Next »