Sha256: c54946fa673338bd3846182de4ac981953a8f9d731477f3ea77113fb7ae98a02

Contents?: true

Size: 393 Bytes

Versions: 8

Compression:

Stored size: 393 Bytes

Contents

class Ckeditor::AttachmentFile < Ckeditor::Asset
	has_attached_file :data,
							:url => "/ckeditor_assets/attachments/:id/:filename",
							:path => ":rails_root/public/ckeditor_assets/attachments/:id/:filename"

	validates_attachment_size :data, :less_than => 100.megabytes
	validates_attachment_presence :data

	def url_thumb
		@url_thumb ||= Ckeditor::Utils.filethumb(filename)
	end
end

Version data entries

8 entries across 8 versions & 1 rubygems

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