class TreeBuilderTemplateFilter < TreeBuilderVmsFilter
  def tree_init_options(tree_name)
    super.update(:leaf => 'MiqTemplate')
  end

  def set_locals_for_render
    locals = super
    locals.merge!(
      :tree_id   => "templates_filter_treebox",
      :tree_name => "templates_filter_tree",
      :id_prefix => "tf_",
      :autoload  => false
    )
  end
end

class TreeBuilderTemplateFilter < TreeBuilderVmsFilter
  def tree_init_options(tree_name)
    super.update(:leaf => 'ManageIQ::Providers::InfraManager::Template')
  end

  def set_locals_for_render
    locals = super
    locals.merge!(
      :tree_id   => "templates_filter_treebox",
      :tree_name => "templates_filter_tree",
      :id_prefix => "tf_",
      :autoload  => false
    )
  end
end

Rename class of leaves for Template filter tree.
Rename class of leaves for Template filter tree.

Rename class of leaves for Template filter tree as earlier renamed
elsewhere in the big model rename.

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