app/controllers/spina/admin/media_picker_controller.rb in spina-1.0.0 vs app/controllers/spina/admin/media_picker_controller.rb in spina-1.0.1
- old
+ new
@@ -15,10 +15,10 @@
render params[:page].present? ? :infinite_scroll : :show
end
def select
if params[:multiple]
- @images = Image.find(params[:image_ids])
+ @images = Image.where(id: params[:image_ids])
else
@image = Image.find(params[:image_id])
end
end