Sha256: c5dddd7e81abb5cabb39e5c05161a41ef821f59a2c20ef9bec13b099e692ab54

Contents?: true

Size: 337 Bytes

Versions: 9

Compression:

Stored size: 337 Bytes

Contents

class Ckeditor::Picture < Ckeditor::Asset
  validates_property :format, of: :data, in: image_file_types unless image_file_types.empty?
  validates_property :image?, of: :data, as: true, message: :invalid

  def url_content
    data.thumb('800x800>').url
  end

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

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
glebtv-ckeditor-4.11.1 lib/generators/ckeditor/templates/active_record/dragonfly/ckeditor/picture.rb
ckeditor-4.3.0 lib/generators/ckeditor/templates/active_record/dragonfly/ckeditor/picture.rb
glebtv-ckeditor-4.7.3.1 lib/generators/ckeditor/templates/active_record/dragonfly/ckeditor/picture.rb
glebtv-ckeditor-4.7.3 lib/generators/ckeditor/templates/active_record/dragonfly/ckeditor/picture.rb
ckeditor-4.2.4 lib/generators/ckeditor/templates/active_record/dragonfly/ckeditor/picture.rb
ckeditor-4.2.3 lib/generators/ckeditor/templates/active_record/dragonfly/ckeditor/picture.rb
ckeditor-4.2.2 lib/generators/ckeditor/templates/active_record/dragonfly/ckeditor/picture.rb
ckeditor-4.2.1 lib/generators/ckeditor/templates/active_record/dragonfly/ckeditor/picture.rb
ckeditor-4.2.0 lib/generators/ckeditor/templates/active_record/dragonfly/ckeditor/picture.rb