[#4184] Enable the contracts module for projects in the conversion.

This commit is contained in:
Eric Davis
2010-07-19 10:06:04 -07:00
parent d08d3ccc52
commit f668d55552
2 changed files with 12 additions and 0 deletions

View File

@@ -97,6 +97,9 @@ module RedmineContracts
end
contract.save!
unless project.module_enabled?(:contracts)
EnabledModule.create!(:project => project, :name => 'contracts')
end
contract
end