app/models/product_group.rb
# Removes all ProductGroupPortfolios associated with this GroupPortfolio's product and portfolio
Removes all ProductGroupPortfolios associated with this GroupPortfolio's product and portfolio
Removes all ProductGroupPortfolios associated with this GroupPortfolio ' s product and portfolio
def remove_associated_product_group_portfolios
    ProductGroupPortfolio.where(:product_id => self.product_id, :group_id => self.group_id).each do |pgp|
      pgp.destroy
    end
    return true
  end
def remove_associated_product_group_portfolios ProductGroupPortfolio . where ( :product_id => self . product_id , :group_id => self . group_id ) . each do | pgp | pgp . destroy end return true end
Removes all ProductGroupPortfolios associated with this GroupPortfolio's product and portfolio
Removes all ProductGroupPortfolios associated with this GroupPortfolio ' s product and portfolio