Class: Pulitzer::ImageUploader
- Inherits:
-
BaseUploader
- Object
- CarrierWave::Uploader::Base
- BaseUploader
- Pulitzer::ImageUploader
- Includes:
- CarrierWave::MiniMagick
- Defined in:
- app/uploaders/pulitzer/image_uploader.rb
Instance Method Summary collapse
Methods inherited from BaseUploader
Instance Method Details
#dynamic_resize ⇒ Object
15 16 17 |
# File 'app/uploaders/pulitzer/image_uploader.rb', line 15 def dynamic_resize resize_to_fit model.width, model.height end |
#version_available?(photo) ⇒ Boolean
19 20 21 22 |
# File 'app/uploaders/pulitzer/image_uploader.rb', line 19 def version_available? photo true # !model.version_unavailable end |