Module: Ckeditor::Backend::Paperclip::ClassMethods

Defined in:
lib/ckeditor/backend/paperclip.rb

Class Method Summary collapse

Class Method Details

.extended(base) ⇒ Object



10
11
12
13
14
15
16
17
# File 'lib/ckeditor/backend/paperclip.rb', line 10

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