diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/arel/select_manager.rb | 4 | ||||
-rw-r--r-- | lib/arel/visitors/to_sql.rb | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/lib/arel/select_manager.rb b/lib/arel/select_manager.rb index 8033846a55..e362f369e7 100644 --- a/lib/arel/select_manager.rb +++ b/lib/arel/select_manager.rb @@ -51,7 +51,9 @@ module Arel end def order_clauses - Visitors::OrderClauses.new(@engine).accept @head + Visitors::OrderClauses.new(@engine).accept(@head).map { |x| + Nodes::SqlLiteral.new x + } end def joins manager diff --git a/lib/arel/visitors/to_sql.rb b/lib/arel/visitors/to_sql.rb index 927ecbb0b0..a798d888d3 100644 --- a/lib/arel/visitors/to_sql.rb +++ b/lib/arel/visitors/to_sql.rb @@ -126,8 +126,8 @@ module Arel DISPATCH = {} def visit object - #send "visit_#{object.class.name.gsub('::', '_')}", object - send DISPATCH[object.class], object + send "visit_#{object.class.name.gsub('::', '_')}", object + #send DISPATCH[object.class], object end private_instance_methods(false).each do |method| |