Skip to content

Commit

Permalink
Replaced dynamic finder deprecated in Rails 4 and removed in 4.1.
Browse files Browse the repository at this point in the history
  • Loading branch information
gwagener committed May 13, 2014
1 parent 775fbb1 commit 7919a61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/refinery/portfolio/gallery.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def delete_removed_items
#
# That is:
# [1 2 3] - [1 2 4] = [3]
removed_items = items.find_all_by_image_id(existing_image_ids - @image_ids)
removed_items = items.where(image_id: (existing_image_ids - @image_ids))
removed_items.map(&:destroy)
end
end
Expand Down

0 comments on commit 7919a61

Please sign in to comment.