Project

General

Profile

Bug #296 » 0001-Check-for-existence-of-family_id-before-referencing-.patch

Frank Sweetser, 06/02/2010 03:24 AM

View differences:

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
(2-2/2)