Sha256: 1ab3a8f6d7e5baa9568b491b6044b10f1a2d4f244f27e5010b8178b368ba2113
Contents?: true
Size: 569 Bytes
Versions: 8
Compression:
Stored size: 569 Bytes
Contents
# frozen_string_literal: true 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_presence :data validates_attachment_size :data, less_than: 2.megabytes validates_attachment_content_type :data, content_type: /\Aimage/ def url_content url(:content) end end
Version data entries
8 entries across 8 versions & 2 rubygems