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
#default_url ⇒ Object
17 18 19 |
# File 'app/uploaders/pulitzer/image_uploader.rb', line 17 def default_url Pulitzer.missing_image_path end |
#dynamic_resize ⇒ Object
21 22 23 |
# File 'app/uploaders/pulitzer/image_uploader.rb', line 21 def dynamic_resize resize_to_fit model.width, model.height end |
#version_available?(photo) ⇒ Boolean
25 26 27 28 |
# File 'app/uploaders/pulitzer/image_uploader.rb', line 25 def version_available? photo true # !model.version_unavailable end |