diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2014-04-09 14:31:10 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2014-04-09 14:31:10 -0700 |
commit | f81965509d74a4607ecbc3cc6f91c2ca22919f3a (patch) | |
tree | 1cf0858990af7791e3c21e6a267af7d8e0eab0b3 /lib/arel | |
parent | 9c87737c9abefdf059a06f1213e8dee2d87f308a (diff) | |
download | rails-f81965509d74a4607ecbc3cc6f91c2ca22919f3a.tar.gz rails-f81965509d74a4607ecbc3cc6f91c2ca22919f3a.tar.bz2 rails-f81965509d74a4607ecbc3cc6f91c2ca22919f3a.zip |
add a compile method to the collectors
Diffstat (limited to 'lib/arel')
-rw-r--r-- | lib/arel/collectors/bind.rb | 4 | ||||
-rw-r--r-- | lib/arel/collectors/sql_string.rb | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/lib/arel/collectors/bind.rb b/lib/arel/collectors/bind.rb index 4309de75c9..05cd966509 100644 --- a/lib/arel/collectors/bind.rb +++ b/lib/arel/collectors/bind.rb @@ -27,6 +27,10 @@ module Arel end end end + + def compile bvs + substitute_binds(bvs).join + end end end end diff --git a/lib/arel/collectors/sql_string.rb b/lib/arel/collectors/sql_string.rb index 526de66416..45001bb507 100644 --- a/lib/arel/collectors/sql_string.rb +++ b/lib/arel/collectors/sql_string.rb @@ -20,6 +20,10 @@ module Arel self << bind.to_s self end + + def compile bvs + value + end end end end |