diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2018-09-30 16:21:02 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2018-09-30 16:25:16 +0900 |
commit | 683a0b5042262d841bfed687a4c56125364cf7a7 (patch) | |
tree | 0ce9e35c77d2d180e7a62ea17965cf9a20d430a8 /activerecord/lib/arel | |
parent | 09de7c91707b83a6c6ff8ab1a176cc1bf92ebb4d (diff) | |
download | rails-683a0b5042262d841bfed687a4c56125364cf7a7.tar.gz rails-683a0b5042262d841bfed687a4c56125364cf7a7.tar.bz2 rails-683a0b5042262d841bfed687a4c56125364cf7a7.zip |
`visitor.accept` doesn't handle `&block`
Diffstat (limited to 'activerecord/lib/arel')
-rw-r--r-- | activerecord/lib/arel/visitors/to_sql.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/arel/visitors/to_sql.rb b/activerecord/lib/arel/visitors/to_sql.rb index 1ed41ff577..87f8c36f9b 100644 --- a/activerecord/lib/arel/visitors/to_sql.rb +++ b/activerecord/lib/arel/visitors/to_sql.rb @@ -67,8 +67,8 @@ module Arel # :nodoc: all @connection = connection end - def compile(node, collector = Arel::Collectors::SQLString.new, &block) - accept(node, collector, &block).value + def compile(node, collector = Arel::Collectors::SQLString.new) + accept(node, collector).value end private |