diff options
author | deeeki <deeeki@gmail.com> | 2014-12-02 20:24:16 +0900 |
---|---|---|
committer | deeeki <deeeki@gmail.com> | 2014-12-03 00:20:01 +0900 |
commit | 66b84c9f442b6d25040a306416c4a863a2dfb397 (patch) | |
tree | 5cfd55cfef2eecfd87b78ce9aa8a78404346de53 /activerecord/lib/active_record/inheritance.rb | |
parent | bc8cc56a2ae0b73276782d66b7dceba1ecd294a2 (diff) | |
download | rails-66b84c9f442b6d25040a306416c4a863a2dfb397.tar.gz rails-66b84c9f442b6d25040a306416c4a863a2dfb397.tar.bz2 rails-66b84c9f442b6d25040a306416c4a863a2dfb397.zip |
Allow to unscope where conditions using `arel_table` with Symbol
This commit fixes the following case.
User.where(User.arel_table[:created_at].lteq(1.year.ago)).unscope(where :created_at)
Diffstat (limited to 'activerecord/lib/active_record/inheritance.rb')
0 files changed, 0 insertions, 0 deletions