Module: Spotlight::ImageDerivatives
- Included in:
- Resources::Upload, BlacklightConfiguration, ItemUploader, SolrDocument::SpotlightImages::Versions
- Defined in:
- app/models/concerns/spotlight/image_derivatives.rb
Instance Method Summary collapse
-
#apply_spotlight_image_derivative_versions ⇒ Object
Extend Spotlight::ImageDerivatives in a CarrierWave uploader then you can call this as a class method and all of the configured versions will be available.
Instance Method Details
#apply_spotlight_image_derivative_versions ⇒ Object
Extend Spotlight::ImageDerivatives in a CarrierWave uploader then you can call this as a class method and all of the configured versions will be available
26 27 28 29 30 31 32 |
# File 'app/models/concerns/spotlight/image_derivatives.rb', line 26 def apply_spotlight_image_derivative_versions spotlight_image_derivatives.each do |version_config| if(c = version_config[:lambda]).present? class_eval(&c) end end end |