app/controllers/products_controller.rb
# Loads all groups and services not assigned to the product, and all employees not assigned to 
# the product for the given year
Loads all groups and services not assigned to the product, and all employees not assigned to
the product for the given year
Loads all groups and services not assigned to the product and all employees not assigned to the product for the given year
def load_available_associations
      @possible_portfolios = @product.get_available_portfolios
      @available_groups = @product.get_available_groups
      @available_services = @product.get_available_services
      @available_employees = @product.get_available_employees(@year)
      @available_dependencies = Product.order(:name) - @product.dependencies - [@product]
      @available_dependents = Product.order(:name) - @product.dependents - [@product]
    end
def load_available_associations @possible_portfolios = @product . get_available_portfolios @available_groups = @product . get_available_groups @available_services = @product . get_available_services @available_employees = @product . get_available_employees ( @year ) @available_dependencies = Product . order ( :name ) - @product . dependencies - [ @product ] @available_dependents = Product . order ( :name ) - @product . dependents - [ @product ] end
Loads all groups and services not assigned to the product, and all employees not assigned to
the product for the given year
Loads all groups and services not assigned to the product and all employees not assigned to the product for the given year