diff options
author | Keenan Brock <keenan@thebrocks.net> | 2015-12-31 20:22:07 -0500 |
---|---|---|
committer | Keenan Brock <keenan@thebrocks.net> | 2016-01-05 21:27:48 -0500 |
commit | 83c47c1962827698eb0ed58d191f121cedf89385 (patch) | |
tree | e19640d2eabfeabad80c61a95a589a8b42d56703 /lib/arel/predications.rb | |
parent | dfd22638c2773d843ea1d2e56992a6ac355b3ecb (diff) | |
download | rails-83c47c1962827698eb0ed58d191f121cedf89385.tar.gz rails-83c47c1962827698eb0ed58d191f121cedf89385.tar.bz2 rails-83c47c1962827698eb0ed58d191f121cedf89385.zip |
Add database specific string concatenation
Diffstat (limited to 'lib/arel/predications.rb')
-rw-r--r-- | lib/arel/predications.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/arel/predications.rb b/lib/arel/predications.rb index e9078e9c4b..81bf3b4d95 100644 --- a/lib/arel/predications.rb +++ b/lib/arel/predications.rb @@ -202,6 +202,10 @@ Passing a range to `#not_in` is deprecated. Call `#not_between`, instead. Nodes::Case.new(self).when quoted_node(right) end + def concat other + Nodes::Concat.new self, other + end + private def grouping_any method_id, others, *extras |