aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases
diff options
context:
space:
mode:
authorCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2012-11-24 08:48:01 -0200
committerCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2012-11-24 09:19:21 -0200
commitccdf54d6fcc96e70a2049f9828241037156067d8 (patch)
tree262e4fd6034993f70cb97a2f78de61e68c2bdc7d /activerecord/test/cases
parentd98014cbcb0bf38f4ecd433d945047fc67fccc36 (diff)
downloadrails-ccdf54d6fcc96e70a2049f9828241037156067d8.tar.gz
rails-ccdf54d6fcc96e70a2049f9828241037156067d8.tar.bz2
rails-ccdf54d6fcc96e70a2049f9828241037156067d8.zip
Refector a bit to remove extra slice iteration and splat call
This yields a small bit of performance improvement when building the defaults from constraints, specially considering that it's rather common for constraints to be empty. Also, there's a bit of duplicated code in here that I have to check before extracting.
Diffstat (limited to 'activerecord/test/cases')
0 files changed, 0 insertions, 0 deletions