Revision b3bbe8e2
Added by Ohad Levy almost 14 years ago
- ID b3bbe8e2c7faae13c7bf0093050c6fc16f9ee321
app/models/operatingsystem.rb | ||
---|---|---|
|
||
# Emulate multiple inheritance from a virtual Family class
|
||
def after_initialize
|
||
extend eval("Family::#{Family::FAMILIES[family_id]}") unless defined?(family_id).nil? or family_id.nil?
|
||
extend eval("Family::#{Family::FAMILIES[family_id]}") if self.respond_to?(:family_id) and not family_id.nil?
|
||
end
|
||
|
||
def family
|
Also available in: Unified diff
another try to fix 281, refs #281