git-svn-id: http://svn.redmine.org/redmine/trunk@20208 e93f8b46-1217-0410-a6f0-8f06a7374b81tags/4.2.0
@@ -70,12 +70,12 @@ class WikiContent < ActiveRecord::Base | |||
def revert_to!(version) | |||
if version.wiki_content_id == id | |||
update_columns( | |||
:author_id => version.author_id, | |||
:text => version.text, | |||
:comments => version.comments, | |||
:version => version.version, | |||
:updated_on => version.updated_on | |||
) && reload | |||
:author_id => version.author_id, | |||
:text => version.text, | |||
:comments => version.comments, | |||
:version => version.version, | |||
:updated_on => version.updated_on | |||
) && reload | |||
end | |||
end | |||