Sha256: 6557bb61fe664935d4c15a466c6f776b9031ee24c19d744dc72a97194ea7ea2e
Contents?: true
Size: 759 Bytes
Versions: 1
Compression:
Stored size: 759 Bytes
Contents
module Spotlight module ConfigurableUploaderVersions def apply_spotlight_versions configured_versions.each do |version_config| version_config[:lambda].call end end def configured_versions @configured_versions ||= [ { version: :thumb, blacklight_config_field: :thumbnail_field, lambda: lambda { version :thumb do process :resize_to_fit => [400,400] end } }, { version: :square, blacklight_config_field: :square_image_field, lambda: lambda { version :square do process :resize_to_fill => [100,100] end } } ] end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
blacklight-spotlight-0.2.0 | app/uploaders/spotlight/configurable_uploader_versions.rb |