[#6441] Remove dead code
This commit is contained in:
1 parent
b99f57f51c
commit
e0ecae8220
1 file changed
-10
@@ -18,12 +18,6 @@ module ContractsHelper
|
|||||||
grouped_contracts
|
grouped_contracts
|
||||||
end
|
end
|
||||||
|
|
||||||
def deliverable_options(project)
|
|
||||||
project.contracts.inject([]) do |data, contract|
|
|
||||||
data << [contract.name, deliverable_options_for_contract(contract)]
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
def grouped_deliverable_options_for_select(project, selected_key=nil)
|
def grouped_deliverable_options_for_select(project, selected_key=nil)
|
||||||
project.contracts.all(:include => :deliverables).inject("") do |html, contract|
|
project.contracts.all(:include => :deliverables).inject("") do |html, contract|
|
||||||
if contract.closed? && !contract.includes_deliverable_id?(selected_key)
|
if contract.closed? && !contract.includes_deliverable_id?(selected_key)
|
||||||
@@ -48,10 +42,6 @@ module ContractsHelper
|
|||||||
|
|
||||||
content_tag(:option, h(deliverable.title), option_attributes)
|
content_tag(:option, h(deliverable.title), option_attributes)
|
||||||
end
|
end
|
||||||
|
|
||||||
def deliverable_options_for_contract(contract)
|
|
||||||
contract.deliverables.collect {|d| [d.title, d.id]}
|
|
||||||
end
|
|
||||||
|
|
||||||
# Simple helper to show the values of a field on an object in a standard format
|
# Simple helper to show the values of a field on an object in a standard format
|
||||||
#
|
#
|
||||||
|
|||||||
Reference in new issue
Block a user