]> git.openstreetmap.org Git - rails.git/commitdiff
Fix typo
authorTom Hughes <tom@compton.nu>
Mon, 30 Sep 2013 07:35:34 +0000 (08:35 +0100)
committerTom Hughes <tom@compton.nu>
Mon, 30 Sep 2013 07:35:34 +0000 (08:35 +0100)
app/controllers/browse_controller.rb

index 705078be7ba36e08a146b1c715130e7ad4ed13ca..fc23ebc1fe9e87f23a8ac98a294bf28d91e813a7 100644 (file)
@@ -82,7 +82,7 @@ class BrowseController < ApplicationController
     @note = Note.find(params[:id])
     @title = "#{I18n.t('browse.note.title')} | #{@note.id}"
     @next = Note.where("status != 'hidden' AND id > ?", @note.id).order(:id).first
-    @prev = Note.where("status != 'hidden' AND id < ?", @note.id).order(:id => @desc).first
+    @prev = Note.where("status != 'hidden' AND id < ?", @note.id).order(:id => :desc).first
   rescue ActiveRecord::RecordNotFound
     render :action => "not_found", :status => :not_found
   end