Sha256: 36b37e710b0e92c430779e25f1c2818f31bc89abbb3265a1893e9eab3984da55

Contents?: true

Size: 264 Bytes

Versions: 25

Compression:

Stored size: 264 Bytes

Contents

class Ckeditor::Picture < Ckeditor::Asset
  has_attached :data, :styles => { :content => '800>', :thumb => '118x100#' }
	
	validates_attachment_size :data, :less_than => 2.megabytes
	validates_attachment_presence :data
	
	def url_content
	  url(:content)
	end
end

Version data entries

25 entries across 25 versions & 2 rubygems

Version Path
fullstack-ckeditor-0.1.1 app/models/ckeditor/picture.rb
fullstack-admin-0.2.19 app/models/ckeditor/picture.rb
fullstack-admin-0.2.18 app/models/ckeditor/picture.rb
fullstack-admin-0.2.17 app/models/ckeditor/picture.rb
fullstack-admin-0.2.16 app/models/ckeditor/picture.rb
fullstack-admin-0.2.15 app/models/ckeditor/picture.rb
fullstack-admin-0.2.14 app/models/ckeditor/picture.rb
fullstack-admin-0.2.13 app/models/ckeditor/picture.rb
fullstack-admin-0.2.12 app/models/ckeditor/picture.rb
fullstack-admin-0.2.11 app/models/ckeditor/picture.rb
fullstack-admin-0.2.9 app/models/ckeditor/picture.rb
fullstack-admin-0.2.8 app/models/ckeditor/picture.rb
fullstack-admin-0.2.7 app/models/ckeditor/picture.rb
fullstack-admin-0.2.6 app/models/ckeditor/picture.rb
fullstack-admin-0.2.5 app/models/ckeditor/picture.rb
fullstack-admin-0.2.4 app/models/ckeditor/picture.rb
fullstack-admin-0.2.3 app/models/ckeditor/picture.rb
fullstack-admin-0.2.2 app/models/ckeditor/picture.rb
fullstack-admin-0.2.1 app/models/ckeditor/picture.rb
fullstack-admin-0.1.56 app/models/ckeditor/picture.rb