[#6636] Add an action to show deliverable finances

This commit is contained in:
Eric Davis
2011-10-12 14:18:59 -07:00
parent ba0ed4a137
commit c8371854cb
10 changed files with 103 additions and 7 deletions
@@ -36,6 +36,14 @@ class DeliverablesController < InheritedResources::Base
end
end
def finances
respond_to do |format|
format.js { render :partial => 'deliverables/finances', :locals => {:contract => @contract, :deliverable => @contract.deliverables.find(params[:id])} }
format.html { }
end
end
def destroy
destroy!(:notice => l(:text_flash_deliverable_deleted, :name => resource.title)) { contract_url(@project, @contract) }
end