diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-08-24 17:59:03 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-08-24 17:59:03 -0700 |
commit | 55d1f9fd127397b7a4c85121a8ef02451257f756 (patch) | |
tree | ce3b023653f7c03bce1155fe041c251b7d855185 /lib/arel/nodes | |
parent | f4194815e6797b16bb5f53938be2697a2a5d1b53 (diff) | |
download | rails-55d1f9fd127397b7a4c85121a8ef02451257f756.tar.gz rails-55d1f9fd127397b7a4c85121a8ef02451257f756.tar.bz2 rails-55d1f9fd127397b7a4c85121a8ef02451257f756.zip |
adding string join nodes and a visitor to produce backwards compatible "join_sql"
Diffstat (limited to 'lib/arel/nodes')
-rw-r--r-- | lib/arel/nodes/string_join.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/arel/nodes/string_join.rb b/lib/arel/nodes/string_join.rb new file mode 100644 index 0000000000..ea7912f92b --- /dev/null +++ b/lib/arel/nodes/string_join.rb @@ -0,0 +1,11 @@ +module Arel + module Nodes + class StringJoin < Arel::Nodes::Join + undef :constraint + + def initialize left, right + super(left, right, nil) + end + end + end +end |