aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/validations/length.rb
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2015-05-05 15:35:42 +0900
committerRyuta Kamizono <kamipo@gmail.com>2015-05-05 15:35:42 +0900
commit7bfc6ea1ef6963eeff39d1cdd4852a822371b528 (patch)
treecd13bb86555b9e769adc30d0c9a0888784950985 /activerecord/lib/active_record/validations/length.rb
parent984a4db3c35af4cd0e2191775b00f850f95ae66c (diff)
downloadrails-7bfc6ea1ef6963eeff39d1cdd4852a822371b528.tar.gz
rails-7bfc6ea1ef6963eeff39d1cdd4852a822371b528.tar.bz2
rails-7bfc6ea1ef6963eeff39d1cdd4852a822371b528.zip
Use `select_rows` instead of `select_one` in `select_value`
`select_one` create `ActiveRecord::Result` instance. It is better to use `select_rows` instead of `select_one` for performance.
Diffstat (limited to 'activerecord/lib/active_record/validations/length.rb')
0 files changed, 0 insertions, 0 deletions