created version diff

This commit is contained in:
Senad Uka
2016-02-21 20:31:56 +01:00
parent ac099e3210
commit 6fd266d7ea
12 changed files with 809 additions and 19 deletions

View File

@@ -1,3 +1,7 @@
class FileVersion < ActiveRecord::Base
belongs_to :configuration_file
def restore!
configuration_file.update_by_form(content, configuration_file.file_path)
end
end