Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

use an attribute rather than a SQL literal

  • Loading branch information...
commit f3e9cbc6955af8f430e75cf5d61e5940f7f46591 1 parent 54a2bf6
@tenderlove tenderlove authored
View
2  activerecord/lib/active_record/relation/query_methods.rb
@@ -284,7 +284,7 @@ def build_select(arel, selects)
@implicit_readonly = false
arel.project(*selects)
else
- arel.project(Arel.sql(@klass.quoted_table_name + '.*'))
+ arel.project(@klass.arel_table[Arel.star])
end
end
View
1  activerecord/test/cases/base_test.rb
@@ -134,6 +134,7 @@ def test_use_table_engine_for_quoting_where
fakepool = Class.new(Struct.new(:spec)) {
def with_connection; yield self; end
def connection_pool; self; end
+ def table_exists?(name); false; end
def quote_table_name(*args); raise "lol quote_table_name"; end
}
Please sign in to comment.
Something went wrong with that request. Please try again.