Sha256: 884ddfbe4f291b0b334dbc9e287757044eb3b943cff46948ff603b55a6f80b5d

Contents?: true

Size: 168 Bytes

Versions: 14

Compression:

Stored size: 168 Bytes

Contents

class EditableFile < EditableElement

  mount_uploader :source, EditableFileUploader

  def content
    self.source? ? self.source.url : self.default_content
  end

end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
locomotive_cms-1.0.0.beta.2 app/models/editable_file.rb
locomotive_cms-1.0.0.beta app/models/editable_file.rb
locomotive_cms-0.0.4.beta12 app/models/editable_file.rb
locomotive_cms-0.0.4.beta11 app/models/editable_file.rb
locomotive_cms-0.0.4.beta10 app/models/editable_file.rb
locomotive_cms-0.0.4.beta9 app/models/editable_file.rb
locomotive_cms-0.0.4.beta8 app/models/editable_file.rb
locomotive_cms-0.0.4.beta7 app/models/editable_file.rb
locomotive_cms-0.0.4.beta5 app/models/editable_file.rb
locomotive_cms-0.0.4.beta4 app/models/editable_file.rb
locomotive_cms-0.0.4.beta3 app/models/editable_file.rb
locomotive_cms-0.0.4.beta2 app/models/editable_file.rb
locomotive_cms-0.0.4.beta1 app/models/editable_file.rb
locomotive_cms-0.0.4 app/models/editable_file.rb