engine/app/models/editable_file.rb

9 lines
168 B
Ruby

class EditableFile < EditableElement
mount_uploader :source, EditableFileUploader
def content
self.source? ? self.source.url : self.default_content
end
end