Class: RedactorRails::Document
- Defined in:
- app/models/redactor/document.rb,
lib/generators/redactor/templates/mongoid/carrierwave/redactor/document.rb,
lib/generators/redactor/templates/active_record/carrierwave/redactor/document.rb
Instance Method Summary collapse
Methods included from Orm::Mongoid::AssetBase
Methods included from Orm::ActiveRecord::AssetBase
Instance Method Details
#as_json_methods ⇒ Object
8 9 10 |
# File 'app/models/redactor/document.rb', line 8 def as_json_methods [:image] end |
#thumb ⇒ Object
8 9 10 11 12 13 |
# File 'lib/generators/redactor/templates/mongoid/carrierwave/redactor/document.rb', line 8 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 |
#url_content ⇒ Object
4 5 6 |
# File 'app/models/redactor/document.rb', line 4 def url_content url(:content) end |