aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/persistence.rb
diff options
context:
space:
mode:
authorCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2013-01-17 21:09:43 -0200
committerCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2013-01-17 21:12:44 -0200
commit4095c08729a188e6ebc24f86d60a10bc01053d9b (patch)
tree134a78021c17392eeac645ec4a30119be0e0e84a /activerecord/lib/active_record/persistence.rb
parent13c0d8c5b31a308b45d8f053df48163cf1d308b5 (diff)
downloadrails-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 'activerecord/lib/active_record/persistence.rb')
0 files changed, 0 insertions, 0 deletions