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

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



10
11
12
# File 'lib/generators/ckeditor/templates/mongoid/paperclip/ckeditor/picture.rb', line 10

def url_content
  url(:content)
end

#url_thumbObject



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

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