Skip to content

Commit

Permalink
Use type names directly from GenericObjectDefinition object
Browse files Browse the repository at this point in the history
  • Loading branch information
mzazrivec committed Nov 30, 2017
1 parent 3c0d8dd commit 0589af8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/controllers/api/generic_object_definitions_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 0589af8

Please sign in to comment.