engine/app/models/locomotive/editable_file.rb

11 lines
233 B
Ruby
Raw Normal View History

module Locomotive
class EditableFile < EditableElement
mount_uploader :source, EditableFileUploader, :mount_on => :source_filename
def content
self.source? ? self.source.url : self.default_content
end
end
end