From f4a26d0580ecb86dc75ca0f9397cd434b9f62a75 Mon Sep 17 00:00:00 2001 From: Brenda Wallace Date: Sun, 20 Nov 2016 09:06:04 +1300 Subject: [PATCH] has_item_id? renamed to item_id? --- app/controllers/photos_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/photos_controller.rb b/app/controllers/photos_controller.rb index fe0ab9bf5..418f3c1cc 100644 --- a/app/controllers/photos_controller.rb +++ b/app/controllers/photos_controller.rb @@ -50,7 +50,7 @@ class PhotosController < ApplicationController @photo = find_or_create_from_flickr_photo params[:photo][:flickr_photo_id] collection = which_collection? - if collection && has_item_id + if collection && item_id? item = params[:type].camelcase.constantize.find_by_id(params[:id]) if item && member_owns_item(item) collection << item unless collection.include?(item) @@ -103,7 +103,7 @@ class PhotosController < ApplicationController private - def has_item_id + def item_id? params.key? :id end