diff options
author | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2013-01-17 21:09:43 -0200 |
---|---|---|
committer | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2013-01-17 21:12:44 -0200 |
commit | 4095c08729a188e6ebc24f86d60a10bc01053d9b (patch) | |
tree | 134a78021c17392eeac645ec4a30119be0e0e84a /actionmailer | |
parent | 13c0d8c5b31a308b45d8f053df48163cf1d308b5 (diff) | |
download | rails-4095c08729a188e6ebc24f86d60a10bc01053d9b.tar.gz rails-4095c08729a188e6ebc24f86d60a10bc01053d9b.tar.bz2 rails-4095c08729a188e6ebc24f86d60a10bc01053d9b.zip |
Refactor predicate builder when receiving empty hash
There's no need to create a new arel table or reflect on the column
association if the value is empty, these attributes are not used.
Also no need to concat a new array, just append the query value.
Diffstat (limited to 'actionmailer')
0 files changed, 0 insertions, 0 deletions