aboutsummaryrefslogtreecommitdiff
path: root/lib/mauve/server.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mauve/server.rb')
-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!
#