aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Young <alex@bytemark.co.uk>2015-03-31 11:29:08 +0100
committerAlex Young <alex@bytemark.co.uk>2015-03-31 11:29:08 +0100
commit49d462c6e2b92e254534cedca1e856079a456749 (patch)
tree03d7bd54cd034ad962df218583503777441d100a
parent102f466ab08c3f4759976c449a541c617a161c10 (diff)
Remove a 1.8-specific Mauve.constants call
-rw-r--r--lib/mauve/server.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/mauve/server.rb b/lib/mauve/server.rb
index 0a63737..56bf973 100644
--- a/lib/mauve/server.rb
+++ b/lib/mauve/server.rb
@@ -161,9 +161,8 @@ module Mauve
#
# Update any tables.
#
- Mauve.constants.each do |c|
- next if %w(AlertEarliestDate).include?(c)
- m = Mauve.const_get(c)
+ DataMapper::Model.descendants.each do |m|
+ next if m == AlertEarliestDate
next unless m.respond_to?("auto_upgrade!")
m.auto_upgrade!
#