Implemented new way of saving without validation

pull/6827/head
Sebastian Schuster 12 years ago
parent 5017c29f88
commit 6fbb2dfd2f
  1. 4
      app/models/variable_cost_object.rb

@ -107,7 +107,7 @@ class VariableCostObject < CostObject
def save_material_budget_items
material_budget_items.each do |material_budget_item|
material_budget_item.save(false)
material_budget_item.save(:validate => false)
end
end
@ -139,7 +139,7 @@ class VariableCostObject < CostObject
def save_labor_budget_items
labor_budget_items.each do |labor_budget_item|
labor_budget_item.save(false)
labor_budget_item.save(:validate =>false)
end
end
end

Loading…
Cancel
Save