deshacer por ahora
da un error al reconocer una imagen
This commit is contained in:
parent
36cf2e89da
commit
d5bb40533c
1 changed files with 0 additions and 16 deletions
|
@ -1,24 +1,8 @@
|
|||
# Una clase que permite adjuntar imágenes a artículos
|
||||
class Post::ImageUploader < CarrierWave::Uploader::Base
|
||||
include CarrierWave::MiniMagick
|
||||
|
||||
attr_accessor :site
|
||||
|
||||
process :strip
|
||||
process resize_to_fit: [1280,1280]
|
||||
|
||||
version :thumb do
|
||||
process :strip
|
||||
process resize_to_fit: [200,200]
|
||||
end
|
||||
|
||||
def strip
|
||||
manipulate! do |img|
|
||||
img.strip
|
||||
img
|
||||
end
|
||||
end
|
||||
|
||||
# Necesitamos pasar el sitio para poder acceder a los archivos locales
|
||||
def initialize(site, wtf = nil)
|
||||
super
|
||||
|
|
Loading…
Reference in a new issue