diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-07-27 17:25:16 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-07-27 17:25:16 -0700 |
commit | 7624b39a69ba2cb06e4d7e5ba8ac005af939f052 (patch) | |
tree | e307ab33e2a7cf8cc2dd7f3cb9a65eacd35fe2fe /lib/arel/algebra/relations | |
parent | 3aaac5b646ecd73a2fc684896402b1456e5238d8 (diff) | |
download | rails-7624b39a69ba2cb06e4d7e5ba8ac005af939f052.tar.gz rails-7624b39a69ba2cb06e4d7e5ba8ac005af939f052.tar.bz2 rails-7624b39a69ba2cb06e4d7e5ba8ac005af939f052.zip |
constantize is not required
Diffstat (limited to 'lib/arel/algebra/relations')
-rw-r--r-- | lib/arel/algebra/relations/relation.rb | 2 |
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 |