Sha256: 42fc6604ab1d3cae8c3e61331820ab185d747ec0f49166746c2c1758afe7556a
Contents?: true
Size: 638 Bytes
Versions: 8
Compression:
Stored size: 638 Bytes
Contents
# encoding: utf-8 class CkeditorPictureUploader < CarrierWave::Uploader::Base include Ckeditor::Backend::CarrierWave require 'carrierwave/processing/mini_magick' include CarrierWave::MiniMagick storage :fog def store_dir "assets/#{model.id}" end def extension_white_list Ckeditor.image_file_types end process :read_dimensions version :tiny do process resize_to_fill: [65, 65] end version :thumb do process resize_to_fill: [160, 120] end version :big_thumb do process resize_to_fill: [460, 280, 'North'] end version :content do process resize_to_limit: [800, 800] end end
Version data entries
8 entries across 8 versions & 1 rubygems