app/models/wishlist_item.rb
# A user can only have limited number to discourage people from putting the whole zone into
# the wishlist.
A user can only have limited number to discourage people from putting the whole zone into
the wishlist.
A user can only have limited number to discourage people from putting the whole zone into the wishlist .
def must_fit_in_wishlist_size
    return if number_of_items_for_user < Setting.wishlist_size
    errors.add(:wishlist, I18n.t('wishlist_items.too_many_items'))
  end
def must_fit_in_wishlist_size return if number_of_items_for_user < Setting . wishlist_size errors . add ( :wishlist , I18n . t ( 'wishlist_items.too_many_items' ) ) end
A user can only have limited number to discourage people from putting the whole zone into
the wishlist.
A user can only have limited number to discourage people from putting the whole zone into the wishlist .