app/models/carousel/slide.rb in comfy_carousel-0.0.2 vs app/models/carousel/slide.rb in comfy_carousel-0.0.3
- old
+ new
@@ -4,11 +4,11 @@
self.table_name = :carousel_slides
upload_options = (ComfyCarousel.config.upload_options || {}).merge(
:styles => lambda { |slide|
- if c = slide.instance.carousel && dimentions = c.try(:dimentions)
- { :original => dimentions }
+ if (c = slide.instance.carousel) && c.dimensions.present?
+ { :original => c.dimensions }
else
{ }
end
}
)