fixes #1897: the "version" field will be updated even when versions are merged

This commit is contained in:
r888888888
2015-08-06 15:21:06 -07:00
parent 5e70083a6a
commit 65d52ebb40
3 changed files with 16 additions and 2 deletions

View File

@@ -195,7 +195,7 @@ class Note < ActiveRecord::Base
:height => height,
:is_active => is_active,
:body => body,
:version => version
:version => versions.where("id <> ?", prev.id).maximum(:version) || 1
)
end