summaryrefslogtreecommitdiffstats
path: root/lib/redmine/custom_field_format.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/redmine/custom_field_format.rb')
-rw-r--r--lib/redmine/custom_field_format.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/redmine/custom_field_format.rb b/lib/redmine/custom_field_format.rb
index f7cd5d1c6..c539aee2e 100644
--- a/lib/redmine/custom_field_format.rb
+++ b/lib/redmine/custom_field_format.rb
@@ -70,6 +70,13 @@ module Redmine
@@available[custom_field_format.name] = custom_field_format unless @@available.keys.include?(custom_field_format.name)
end
+ def delete(format)
+ if format.is_a?(Redmine::CustomFieldFormat)
+ format = format.name
+ end
+ @@available.delete(format)
+ end
+
def available_formats
@@available.keys
end