[32982] Expose BIM export format only on bim mode

https://community.openproject.com/wp/32982

[ci skip]
This commit is contained in:
Oliver Günther
2020-04-16 11:26:26 +02:00
parent fdd23c08bc
commit 7cbffc4ec6
@@ -1,7 +1,11 @@
module OpenProject::Bim::Patches
module API::V3::ExportFormats
def representation_formats
super + [representation_format_bcf]
if OpenProject::Configuration.bim?
super + [representation_format_bcf]
else
super
end
end
def representation_format_bcf