summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-02-24 18:23:58 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-02-24 18:23:58 +0000
commit528735b955abd70aa76eefdfa9929447679f3b89 (patch)
treea0e6c065a580cff2c80388b7481ed686dc7157ab /app
parent55a8087f674b81bfc31192ce2e123108af0ea5d1 (diff)
downloadredmine-528735b955abd70aa76eefdfa9929447679f3b89.tar.gz
redmine-528735b955abd70aa76eefdfa9929447679f3b89.zip
Use subclasses method instead of class variable.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8977 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r--app/models/enumeration.rb2
1 files changed, 1 insertions, 1 deletions
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?