Class: Ckeditor::Picture

Inherits:
Asset
  • Object
show all
Defined in:
lib/generators/ckeditor/templates/mongoid/paperclip/ckeditor/picture.rb,
lib/generators/ckeditor/templates/mongoid/carrierwave/ckeditor/picture.rb,
lib/generators/ckeditor/templates/active_record/dragonfly/ckeditor/picture.rb,
lib/generators/ckeditor/templates/active_record/paperclip/ckeditor/picture.rb,
lib/generators/ckeditor/templates/active_record/carrierwave/ckeditor/picture.rb

Constant Summary

Constants included from Backend::Dragonfly

Backend::Dragonfly::FORMATS

Instance Method Summary collapse

Methods included from Backend::Dragonfly

included

Methods included from Orm::ActiveRecord::AssetBase

included

Methods included from Backend::Paperclip

included

Methods included from Orm::Mongoid::AssetBase

included

Instance Method Details

#url_contentObject



13
14
15
# File 'lib/generators/ckeditor/templates/mongoid/paperclip/ckeditor/picture.rb', line 13

def url_content
  url(:content)
end

#url_thumbObject



11
12
13
# File 'lib/generators/ckeditor/templates/active_record/dragonfly/ckeditor/picture.rb', line 11

def url_thumb
  data.thumb('118x100#').url(url_thumb_options)
end