app/uploaders/receipt_uploader.rb in bookkeeper-0.0.4 vs app/uploaders/receipt_uploader.rb in bookkeeper-0.0.5
- old
+ new
@@ -1,11 +1,11 @@
# encoding: utf-8
class ReceiptUploader < CarrierWave::Uploader::Base
# Include RMagick or MiniMagick support:
- include CarrierWave::RMagick
+ # include CarrierWave::RMagick
# include CarrierWave::MiniMagick
# Include the Sprockets helpers for Rails 3.1+ asset pipeline compatibility:
# include Sprockets::Helpers::RailsHelper
# include Sprockets::Helpers::IsolatedHelper
@@ -29,25 +29,25 @@
"/images/fallback/" + [version_name, "default.png"].compact.join('_')
end
# Process files as they are uploaded:
- process :resize_to_fit => [1000, 1000]
+ # process :resize_to_fit => [1000, 1000]
#
# def scale(width, height)
# # do something
# end
# Create different versions of your uploaded files:
- version :thumb do
- process :resize_to_fill => [64, 64]
- end
+ # version :thumb do
+ # process :resize_to_fill => [64, 64]
+ # 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 pdf)
- end
+ # def extension_white_list
+ # %w(jpg jpeg gif png pdf)
+ # end
# Override the filename of the uploaded files:
# Avoid using model.id or version_name here, see uploader/store.rb for details.
# def filename
# "something.jpg" if original_filename