Files
old-saburly-confighub/web/app/models/file_version.rb
2016-02-21 20:31:56 +01:00

8 lines
175 B
Ruby

class FileVersion < ActiveRecord::Base
belongs_to :configuration_file
def restore!
configuration_file.update_by_form(content, configuration_file.file_path)
end
end