Вы можете создать 2 отдельные модели загрузчика.Выглядело бы примерно так:
profile_uploader.rb
class ProfileUploader < CarrierWave::Uploader::Base
include CarrierWave::RMagick
storage :file
version :thumb do
process :resize_to_fill => [200, 200]
end
end
atached_uploader.rb
class AttachedUploader < CarrierWave::Uploader::Base
include CarrierWave::RMagick
storage :file
version :thumb do
process :resize_to_fill => [100, 100]
end
end
user.rb
class User < ActiveRecord::Base
mount_uploader :profile, ProfileUploader
end
post.рб
class Post < ActiveRecord::Base
mount_uploader :attached, AttachedUploader
end