From 528735b955abd70aa76eefdfa9929447679f3b89 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Fri, 24 Feb 2012 18:23:58 +0000 Subject: Use subclasses method instead of class variable. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8977 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/models/enumeration.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app') diff --git a/app/models/enumeration.rb b/app/models/enumeration.rb index 826955cc8..d532c78be 100644 --- a/app/models/enumeration.rb +++ b/app/models/enumeration.rb @@ -98,7 +98,7 @@ class Enumeration < ActiveRecord::Base # # Note: subclasses is protected in ActiveRecord def self.get_subclasses - @@subclasses[Enumeration] + subclasses end # Does the +new+ Hash override the previous Enumeration? -- cgit v1.2.3