From 1991a91e68d569b305a5680161ffa9168eac9bed Mon Sep 17 00:00:00 2001 From: Frank Sweetser Date: Tue, 1 Jun 2010 20:18:53 -0400 Subject: [PATCH] Fix family_id references --- app/models/operatingsystem.rb | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/app/models/operatingsystem.rb b/app/models/operatingsystem.rb index e0062d3..c5de657 100644 --- a/app/models/operatingsystem.rb +++ b/app/models/operatingsystem.rb @@ -17,7 +17,7 @@ class Operatingsystem < ActiveRecord::Base # 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.6.6.1