aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel
diff options
context:
space:
mode:
Diffstat (limited to 'lib/arel')
-rw-r--r--lib/arel/algebra/relations/relation.rb2
1 files changed, 1 insertions, 1 deletions
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