app/models/ckeditor/picture.rb in fullstack-ckeditor-0.1.1 vs app/models/ckeditor/picture.rb in fullstack-ckeditor-0.1.2

- old
+ new

@@ -1,10 +1,13 @@ class Ckeditor::Picture < Ckeditor::Asset has_attached :data, :styles => { :content => '800>', :thumb => '118x100#' } - validates_attachment_size :data, :less_than => 2.megabytes + validates_attachment_size :data, :less_than => 5.megabytes validates_attachment_presence :data + field :width + field :height + def url_content url(:content) end end