Sha256: b8050c9a10db708a168c716ff5a3c9e2b4cd09518297526f08f69fbe5d2b5239

Contents?: true

Size: 441 Bytes

Versions: 8

Compression:

Stored size: 441 Bytes

Contents

class Ckeditor::Picture < Ckeditor::Asset
	has_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

	def url_content
		url(:content)
	end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
odania_core-0.0.8 app/models/ckeditor/picture.rb
odania_core-0.0.7 app/models/ckeditor/picture.rb
odania_core-0.0.6 app/models/ckeditor/picture.rb
odania_core-0.0.5 app/models/ckeditor/picture.rb
odania_core-0.0.4 app/models/ckeditor/picture.rb
odania_core-0.0.3 app/models/ckeditor/picture.rb
odania_core-0.0.2 app/models/ckeditor/picture.rb
odania_core-0.0.1 app/models/ckeditor/picture.rb