return false is added to ensure_not_referenced_by_any_line_item into item.rb. Otherwise it was possible to destroy an instance even if it is present in a shopping cart.
return false is added to ensure_not_referenced_by_any_line_item into item.rb. Otherwise it was possible to destroy an instance even if it is present in a shopping cart.
before filter is applied to item