Sha256: 15ebc4bafded8ec1cd26711fba42d2a0dda23979ca74aa37a12b0a094301e9bc

Contents?: true

Size: 252 Bytes

Versions: 1

Compression:

Stored size: 252 Bytes

Contents

class Ckeditor::AttachmentFile < Ckeditor::Asset

  has_attached :data

  validates_attachment_size :data, :less_than => 50.megabytes
  validates_attachment_presence :data
	
	def url_thumb
	  @url_thumb ||= Ckeditor::Utils.filethumb(filename)
	end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fullstack-ckeditor-0.1.2 app/models/ckeditor/attachment_file.rb