8 lines
175 B
Ruby
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
|