aboutsummaryrefslogtreecommitdiffstats
path: root/activestorage/lib
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2018-01-07 14:05:02 +0900
committerRyuta Kamizono <kamipo@gmail.com>2018-01-07 14:31:18 +0900
commitf5328d9379da473bfc5420996693a14c6e0d2556 (patch)
treebfba992eca2f23b93760e248b6a19035dbef5780 /activestorage/lib
parent68754d37706f11ca363b3108eda10749b9957817 (diff)
downloadrails-f5328d9379da473bfc5420996693a14c6e0d2556.tar.gz
rails-f5328d9379da473bfc5420996693a14c6e0d2556.tar.bz2
rails-f5328d9379da473bfc5420996693a14c6e0d2556.zip
Make `find_nth_from_last` more performant when using reversible order
We can use `relation.last(index)[-index]` instead of loading all records when using reversible order because `last` will call `reverse_order`.
Diffstat (limited to 'activestorage/lib')
0 files changed, 0 insertions, 0 deletions