From 7624b39a69ba2cb06e4d7e5ba8ac005af939f052 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Tue, 27 Jul 2010 17:25:16 -0700 Subject: constantize is not required --- lib/arel/algebra/relations/relation.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/arel') diff --git a/lib/arel/algebra/relations/relation.rb b/lib/arel/algebra/relations/relation.rb index af97aa8344..1d395777c1 100644 --- a/lib/arel/algebra/relations/relation.rb +++ b/lib/arel/algebra/relations/relation.rb @@ -30,7 +30,7 @@ module Arel def compiler @compiler ||= begin - "Arel::SqlCompiler::#{engine.adapter_name}Compiler".constantize.new(self) + Arel::SqlCompiler.const_get("#{engine.adapter_name}Compiler").new(self) rescue Arel::SqlCompiler::GenericCompiler.new(self) end -- cgit v1.2.3