Sha256: 6f9111969b85d6362608e2b8e974ce48bd55002274aefe44899544f1f1796b1d

Contents?: true

Size: 592 Bytes

Versions: 11

Compression:

Stored size: 592 Bytes

Contents

class Ckeditor::Picture < Ckeditor::Asset
  has_mongoid_attached_file :data,
                            :url  => "/ckeditor_assets/pictures/:id/:style_:basename.:extension",
                            :path => ":rails_root/public/ckeditor_assets/pictures/:id/:style_:basename.:extension",
                            :styles => { :content => '800>', :thumb => '118x100#' }

  validates_attachment_size :data, :less_than => 2.megabytes
  validates_attachment_presence :data
  validates_attachment_content_type :data, :content_type => /\Aimage/

  def url_content
    url(:content)
  end
end

Version data entries

11 entries across 11 versions & 4 rubygems

Version Path
danabr75-ckeditor-4.1.6 lib/generators/ckeditor/templates/mongoid/paperclip/ckeditor/picture.rb
glebtv-ckeditor-4.6.0 lib/generators/ckeditor/templates/mongoid/paperclip/ckeditor/picture.rb
glebtv-ckeditor-4.5.10.3 lib/generators/ckeditor/templates/mongoid/paperclip/ckeditor/picture.rb
glebtv-ckeditor-4.5.10.2 lib/generators/ckeditor/templates/mongoid/paperclip/ckeditor/picture.rb
glebtv-ckeditor-4.5.10.1 lib/generators/ckeditor/templates/mongoid/paperclip/ckeditor/picture.rb
glebtv-ckeditor-4.5.7.1 lib/generators/ckeditor/templates/mongoid/paperclip/ckeditor/picture.rb
glebtv-ckeditor-4.5.7 lib/generators/ckeditor/templates/mongoid/paperclip/ckeditor/picture.rb
ckeditor_custom_controller-4.1.6 lib/generators/ckeditor/templates/mongoid/paperclip/ckeditor/picture.rb
ckeditor-4.1.6 lib/generators/ckeditor/templates/mongoid/paperclip/ckeditor/picture.rb
ckeditor-4.1.5 lib/generators/ckeditor/templates/mongoid/paperclip/ckeditor/picture.rb
ckeditor-4.1.4 lib/generators/ckeditor/templates/mongoid/paperclip/ckeditor/picture.rb