fixes #691
This commit is contained in:
@@ -94,7 +94,7 @@ class PostVersion < ActiveRecord::Base
|
|||||||
end
|
end
|
||||||
|
|
||||||
def previous
|
def previous
|
||||||
PostVersion.where("post_id = ? and id < ?", post_id, id).order("updated_at desc").first
|
PostVersion.where("post_id = ? and updated_at < ?", post_id, updated_at).order("updated_at desc").first
|
||||||
end
|
end
|
||||||
|
|
||||||
def truncated_source
|
def truncated_source
|
||||||
|
|||||||
Reference in New Issue
Block a user