Sha256: 5a0cf82fc217b20f75df71d947862c0b49c326b26f6cea28c33111df8d651157

Contents?: true

Size: 352 Bytes

Versions: 73

Compression:

Stored size: 352 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

73 entries across 73 versions & 6 rubygems

Version Path
danabr75-ckeditor-4.1.6 lib/generators/ckeditor/templates/active_record/dragonfly/ckeditor/picture.rb
glebtv-ckeditor-4.6.0 lib/generators/ckeditor/templates/active_record/dragonfly/ckeditor/picture.rb
glebtv-ckeditor-4.5.10.3 lib/generators/ckeditor/templates/active_record/dragonfly/ckeditor/picture.rb
glebtv-ckeditor-4.5.10.2 lib/generators/ckeditor/templates/active_record/dragonfly/ckeditor/picture.rb
glebtv-ckeditor-4.5.10.1 lib/generators/ckeditor/templates/active_record/dragonfly/ckeditor/picture.rb
glebtv-ckeditor-4.5.7.1 lib/generators/ckeditor/templates/active_record/dragonfly/ckeditor/picture.rb
glebtv-ckeditor-4.5.7 lib/generators/ckeditor/templates/active_record/dragonfly/ckeditor/picture.rb
ckeditor_custom_controller-4.1.6 lib/generators/ckeditor/templates/active_record/dragonfly/ckeditor/picture.rb
ckeditor-4.1.6 lib/generators/ckeditor/templates/active_record/dragonfly/ckeditor/picture.rb
ckeditor-4.1.5 lib/generators/ckeditor/templates/active_record/dragonfly/ckeditor/picture.rb
ckeditor-4.1.4 lib/generators/ckeditor/templates/active_record/dragonfly/ckeditor/picture.rb
ckeditor-4.1.3 lib/generators/ckeditor/templates/active_record/dragonfly/ckeditor/picture.rb
glebtv-ckeditor-4.4.7.4 lib/generators/ckeditor/templates/active_record/dragonfly/ckeditor/picture.rb
ckeditor-4.1.2 lib/generators/ckeditor/templates/active_record/dragonfly/ckeditor/picture.rb
glebtv-ckeditor-4.4.7.3 lib/generators/ckeditor/templates/active_record/dragonfly/ckeditor/picture.rb
glebtv-ckeditor-4.4.7.2 lib/generators/ckeditor/templates/active_record/dragonfly/ckeditor/picture.rb
glebtv-ckeditor-4.4.7.1 lib/generators/ckeditor/templates/active_record/dragonfly/ckeditor/picture.rb
glebtv-ckeditor-4.4.7 lib/generators/ckeditor/templates/active_record/dragonfly/ckeditor/picture.rb
glebtv-ckeditor-4.4.6 lib/generators/ckeditor/templates/active_record/dragonfly/ckeditor/picture.rb
ckeditor-4.1.1 lib/generators/ckeditor/templates/active_record/dragonfly/ckeditor/picture.rb