app/presenters/tree_builder_chargeback_reports.rb
# Handle custom tree nodes (object is a Hash)
Handle custom tree nodes (object is a Hash)
Handle custom tree nodes ( object is a Hash )
def x_get_tree_custom_kids(object, count_only, _options)
    objects = MiqReportResult.auto_generated.where(
      :miq_report_id => from_cid(object[:id].split('-').first),
      :userid        => User.current_user.userid
    ).order("created_on DESC").select("id, miq_report_id, name, last_run_on, miq_task_id")
    count_only_or_objects(count_only, objects, "name")
  end
def x_get_tree_custom_kids ( object , count_only , _options ) objects = MiqReportResult . auto_generated . where ( :miq_report_id => from_cid ( object [ :id ] . split ( '-' ) . first ) , :userid => User . current_user . userid ) . order ( "created_on DESC" ) . select ( "id, miq_report_id, name, last_run_on, miq_task_id" ) count_only_or_objects ( count_only , objects , "name" ) end
Handle custom tree nodes (object is a Hash)
Handle custom tree nodes ( object is a Hash )
object
<not_specific>
count_only
<not_specific>
_options
<not_specific>