Module: Ckeditor::Backend::Paperclip::ClassMethods
- Defined in:
- lib/ckeditor/backend/paperclip.rb
Class Method Summary collapse
Class Method Details
.extended(base) ⇒ Object
12 13 14 15 16 17 18 19 |
# File 'lib/ckeditor/backend/paperclip.rb', line 12 def self.extended(base) base.class_eval do before_validation :extract_content_type before_create :read_dimensions, :parameterize_filename delegate :url, :path, :styles, :size, :content_type, :to => :data end end |