spec/dummy/app/uploaders/picture_uploader.rb in rails-uploader-0.0.3 vs spec/dummy/app/uploaders/picture_uploader.rb in rails-uploader-0.0.4

- old
+ new

@@ -2,11 +2,11 @@ class PictureUploader < CarrierWave::Uploader::Base # Include RMagick or MiniMagick support: # include CarrierWave::RMagick - # include CarrierWave::MiniMagick + include CarrierWave::MiniMagick # Include the Sprockets helpers for Rails 3.1+ asset pipeline compatibility: # include Sprockets::Helpers::RailsHelper # include Sprockets::Helpers::IsolatedHelper @@ -34,12 +34,12 @@ # def scale(width, height) # # do something # end # Create different versions of your uploaded files: - # version :thumb do - # process :scale => [50, 50] - # end + version :thumb do + process :resize_to_fill => [50, 50] + end # Add a white list of extensions which are allowed to be uploaded. # For images you might use something like this: # def extension_white_list # %w(jpg jpeg gif png)