diff options
author | Loic Nageleisen <loic.nageleisen@gmail.com> | 2014-02-04 11:38:00 +0100 |
---|---|---|
committer | cmohanprasath <cmohanprasath@gmail.com> | 2014-02-11 19:09:53 +0200 |
commit | d1ec33d69d85a3608aef9b064bc2c4799a214000 (patch) | |
tree | 82dfb0cc30238bbfcfdb259788326ce51a252fca /lib/arel/visitors/dot.rb | |
parent | 048d6c0aefec9f233a77e9160f426cf2fed1b7f6 (diff) | |
download | rails-d1ec33d69d85a3608aef9b064bc2c4799a214000.tar.gz rails-d1ec33d69d85a3608aef9b064bc2c4799a214000.tar.bz2 rails-d1ec33d69d85a3608aef9b064bc2c4799a214000.zip |
Allow assignment right member to reference columns
Such queries become possible for mortals:
```ruby
table.where(table[:qux].eq 'zomg').compile_update(table[:foo] => table[:bar])
```
Arguably much more sane than using `engine.connection.quote_column_name`
or `engine.connection.visitor.accept` on the right hand (bar), which is
totally leaking the abstraction.
Diffstat (limited to 'lib/arel/visitors/dot.rb')
0 files changed, 0 insertions, 0 deletions