Sha256: fd79bf5aa9f32c3ffea508b2b0353684e1a259c31bb54d3bc9037e8052eea426

Contents?: true

Size: 343 Bytes

Versions: 3

Compression:

Stored size: 343 Bytes

Contents

class RedactorRails::Document < RedactorRails::Asset
  mount_uploader :data, RedactorRailsDocumentUploader, mount_on: :data_file_name

  def url_content
    url(:content)
  end

  def thumb
    # Could theoretically provide an icon set here
    # to match against the extensions
    # but for now it's nil to address the bug
    nil
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
redactor-rails-paperclip-0.4.3 lib/generators/redactor/templates/mongoid/carrierwave/redactor/document.rb
redactor-rails-paperclip-0.4.2.1 lib/generators/redactor/templates/mongoid/carrierwave/redactor/document.rb
redactor-rails-paperclip-0.4.1 lib/generators/redactor/templates/mongoid/carrierwave/redactor/document.rb