11 lines
202 B
Ruby
11 lines
202 B
Ruby
|
module Locomotive
|
||
|
class EditableFile < EditableElement
|
||
|
|
||
|
mount_uploader :source, EditableFileUploader
|
||
|
|
||
|
def content
|
||
|
self.source? ? self.source.url : self.default_content
|
||
|
end
|
||
|
|
||
|
end
|
||
|
end
|