diff --git a/app/controllers/api/generic_object_definitions_controller.rb b/app/controllers/api/generic_object_definitions_controller.rb index f2377ee4e4..b15714e449 100644 --- a/app/controllers/api/generic_object_definitions_controller.rb +++ b/app/controllers/api/generic_object_definitions_controller.rb @@ -104,8 +104,8 @@ def self.allowed_association_types end def self.allowed_types - GenericObjectDefinition::TYPE_MAP.keys.collect do |type| - [Dictionary.gettext(type.to_s, :type => :data_type, :notfound => :titleize, :plural => false), type.to_s] + GenericObjectDefinition::TYPE_NAMES.each.collect do |key, value| + [value, key.to_s] end.sort end