dropped redundant limit

pull/1039/head
Markus Kahl 11 years ago
parent 05c003e11f
commit 08f8c482fe
  1. 2
      app/models/journal.rb

@ -190,7 +190,7 @@ class Journal < ActiveRecord::Base
@predecessor ||= Journal.where("journable_type = ? AND journable_id = ? AND version < ?",
journable_type, journable_id, version)
.order("version DESC")
.limit(1).first
.first
end
def journalized_object_type

Loading…
Cancel
Save