Remove custom_fields_with_format

This commit is contained in:
Alexander Meindl 2020-07-31 07:10:30 +02:00
parent 7b4cbbf1b5
commit d63ebc8e22

View File

@ -154,16 +154,6 @@ module Additionals
[value, options]
end
def custom_fields_with_format(entity, format, project = nil, options = {})
scope = if project.nil?
Object.const_get "#{entity}CustomField"
else
project.send options[:custom_fields_method].presence || "#{entity.underscore}_custom_fields"
end
scope.where field_format: format
end
private
def settings