Project

General

Profile

Bug #296 » 0001-Fix-family_id-references.patch

Frank Sweetser, 06/02/2010 01:22 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 self.respond_to?(:family_id) and not @family_id.nil?
end
def family
(1-1/2)