]> git.openstreetmap.org Git - rails.git/commit
Force notes list to be realised in notes#mine
authorTom Hughes <tom@compton.nu>
Mon, 10 Jun 2013 22:45:06 +0000 (23:45 +0100)
committerTom Hughes <tom@compton.nu>
Mon, 10 Jun 2013 22:45:06 +0000 (23:45 +0100)
commitcc8bfc07bbb33debc746f83fdae71f02535592d8
tree9377433c71c9f45d7df7e7be1e9b98652fce64b6
parent82f89681695a2c59fe2b3a42c9acfa92246a2a38
Force notes list to be realised in notes#mine

There is a rails bug which means that using count on a relation
that uses uniq and offset/limit and which hasn't been realised
yet will always return one, so force it to be realised.
app/controllers/notes_controller.rb