Skip to content

Commit

Permalink
[frontend] Stop conversion to symbols
Browse files Browse the repository at this point in the history
This isn't needed with the recent refactorings made in 38faed0.
  • Loading branch information
bgeuken committed Dec 6, 2017
1 parent d83aada commit 8de9228
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/api/app/models/bs_request_action.rb
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,11 @@ def self.type_to_class_name(type_name)

def self.find_sti_class(type_name)
return super if type_name.nil?
type_to_class_name(type_name.to_sym) || super
type_to_class_name(type_name) || super
end

def self.new_from_xml_hash(hash)
classname = type_to_class_name(hash.delete('type').to_sym)
classname = type_to_class_name(hash.delete('type'))

# request actions of type group were official never supported
# but there is build.opensuse.org which contains quite some of these
Expand Down

0 comments on commit 8de9228

Please sign in to comment.