Files
old-saburly-confighub/web/app/models/file_version.rb

8 lines
175 B
Ruby
Raw Normal View History

2016-02-21 11:59:13 +01:00
class FileVersion < ActiveRecord::Base
belongs_to :configuration_file
2016-02-21 20:31:56 +01:00
def restore!
configuration_file.update_by_form(content, configuration_file.file_path)
end
2016-02-21 11:59:13 +01:00
end