lib/tasks/alchemy/thumbnails.rake in alchemy_cms-6.1.0 vs lib/tasks/alchemy/thumbnails.rake in alchemy_cms-6.1.1
- old
+ new
@@ -44,10 +44,10 @@
desc "Generates thumbnails for Alchemy Picture Ingredients (set ELEMENTS=element1,element2 to only generate thumbnails for a subset of elements)."
task ingredient_picture_thumbnails: :environment do
ingredient_pictures = Alchemy::Ingredients::Picture.
joins(:element).
preload({ related_object: :thumbs }).
- merge(Alchemy::Element.published)
+ merge(Alchemy::Element.available)
if ENV["ELEMENTS"].present?
ingredient_pictures = ingredient_pictures.merge(
Alchemy::Element.named(ENV["ELEMENTS"].split(","))
)