|
|
@ -5,10 +5,16 @@ module OpenProject::Bim::Patches::ProjectSeederPatch |
|
|
|
|
|
|
|
|
|
|
|
module InstanceMethods |
|
|
|
module InstanceMethods |
|
|
|
def project_data_seeders(project, key) |
|
|
|
def project_data_seeders(project, key) |
|
|
|
[ |
|
|
|
data = super |
|
|
|
::Bim::DemoData::BcfXmlSeeder.new(project, key), |
|
|
|
|
|
|
|
::Bim::DemoData::IfcModelSeeder.new(project, key) |
|
|
|
if OpenProject::Configuration.bim? |
|
|
|
] + super(project, key) |
|
|
|
[ |
|
|
|
|
|
|
|
::Bim::DemoData::BcfXmlSeeder.new(project, key), |
|
|
|
|
|
|
|
::Bim::DemoData::IfcModelSeeder.new(project, key) |
|
|
|
|
|
|
|
] + data |
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
data |
|
|
|
|
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
def seed_settings |
|
|
|
def seed_settings |
|
|
|