From 49d462c6e2b92e254534cedca1e856079a456749 Mon Sep 17 00:00:00 2001 From: Alex Young Date: Tue, 31 Mar 2015 11:29:08 +0100 Subject: Remove a 1.8-specific Mauve.constants call --- lib/mauve/server.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'lib') 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! # -- cgit v1.2.1