9 lines
168 B
Ruby
9 lines
168 B
Ruby
|
class EditableFile < EditableElement
|
||
|
|
||
|
mount_uploader :source, EditableFileUploader
|
||
|
|
||
|
def content
|
||
|
self.source? ? self.source.url : self.default_content
|
||
|
end
|
||
|
|
||
|
end
|