class GenericObjectDefinitionDecorator < MiqDecorator
  def self.fonticon
    'fa fa-file-text-o'
  end

  def fileicon
    try(:picture) ? "/pictures/#{picture.basename}" : nil
  end
end

class GenericObjectDefinitionDecorator < MiqDecorator
  def self.fonticon
    'fa fa-file-text-o'
  end

  def fileicon
    try(:picture) ? "/pictures/#{picture.basename}" : nil
  end

  def quadicon
    {
      :fileicon => fileicon,
      :fonticon => fileicon ? nil : fonticon
    }
  end
end

Add missing quadicon definition for generic object definitions
Add missing quadicon definition for generic object definitions

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1650146
