diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-09-18 13:42:54 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-09-18 13:42:54 -0700 |
commit | 6f9f83e474505d7e1c253fd8f120a06e2dcd61cd (patch) | |
tree | 2a73b012e6492a5c791ed9206bde012c712ff71c /lib | |
parent | dfa520b9ab08522e10978f2ee3006ba42db418ba (diff) | |
download | rails-6f9f83e474505d7e1c253fd8f120a06e2dcd61cd.tar.gz rails-6f9f83e474505d7e1c253fd8f120a06e2dcd61cd.tar.bz2 rails-6f9f83e474505d7e1c253fd8f120a06e2dcd61cd.zip |
if FROM is a string, convert to string literal
Diffstat (limited to 'lib')
-rw-r--r-- | lib/arel/select_manager.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/arel/select_manager.rb b/lib/arel/select_manager.rb index 20c97f198a..daef9f52ca 100644 --- a/lib/arel/select_manager.rb +++ b/lib/arel/select_manager.rb @@ -51,6 +51,7 @@ module Arel end def from table + table = Nodes::SqlLiteral.new(table) if String === table @ctx.froms = [table] self end |