"Some missing methods, e.g. Models::Holding.get_all.select {|s| s.item.id.to_s.eql?(params[:id].to_s) } should be encapsulated somewhere."
"You can implement your own equality relationship, or use a comparator instead of this code: self.list_items.detect{|i| i.name== item.name and i.price == item.price and i.description==item.description})"
"Some missing methods, e.g.
Models::Holding.get_all.select {|s| s.item.id.to_s.eql?(params[:id].to_s) }
should be encapsulated somewhere.""You can implement your own equality relationship, or use a comparator instead of this code:
self.list_items.detect{|i| i.name== item.name and i.price == item.price and i.description==item.description})
"