[#4420] Hook up Retainers so they can be saved.

This commit is contained in:
Eric Davis committed 2010-08-16 14:49:03 -07:00
1 parent 7d19c10714
commit 1120b39ed6
4 files changed
+49 -1

No files matched your search

+1 -1
View File
@@ -14,7 +14,7 @@ class DeliverablesController < InheritedResources::Base
def create
@deliverable = begin_of_association_chain.deliverables.build(params[:deliverable])
if params[:deliverable] && params[:deliverable][:type] && ['FixedDeliverable','HourlyDeliverable'].include?(params[:deliverable][:type])
if params[:deliverable] && params[:deliverable][:type] && ['FixedDeliverable','HourlyDeliverable','RetainerDeliverable'].include?(params[:deliverable][:type])
@deliverable.type = params[:deliverable][:type]
end
create! { contract_url(@project, @contract) }